Skip to main content
All default motor configuration values are defined in motor/mcconf_default.h. Every value can be overridden per hardware target via #define in the hardware header before including mcconf_default.h.

Current limits

Current limits protect the motor and controller from damage. The firmware enforces these limits continuously.

Input current mapping

The absolute current limit (MCCONF_L_MAX_ABS_CURRENT) applies to the unfiltered peak current. If MCCONF_L_SLOW_ABS_OVERCURRENT is true (default: false), the filtered current is used instead, which is slower to react.

Voltage limits

Battery cutoff

As battery voltage drops, the firmware gradually reduces positive current to protect the battery:
The regenerative cut defaults are intentionally set far above any realistic battery voltage, meaning regenerative braking is not voltage-limited by default. Set these to meaningful values (e.g., 4.1 V × cells) to protect lithium cells from overcharge during braking.

Temperature limits

The firmware monitors both MOSFET (FET) and motor temperatures. When temperature exceeds the start threshold, current is linearly reduced. At the end threshold, the output is shut off entirely.

MOSFET temperature

Motor temperature

Acceleration thermal derating

Motor temperature sensor

Supported sensor types (temp_sensor_type):

Speed limits

Duty cycle limits

Brake limits

Power limits

The default power limits are set to very high values (1.5 MW) and are effectively unlimited for all practical VESC hardware. Set these to realistic values to prevent battery over-discharge or motor overheating.

Speed PID parameters

Position PID parameters

Ramping

Fault behavior

Encoder configuration

Setup info

Setup parameters are used to convert electrical measurements (ERPM, amp-hours) to mechanical units (m/s, km):

Miscellaneous

Changing current limits, voltage limits, or temperature limits outside the rated range of your hardware can cause permanent damage to the MOSFET bridge, motor, or battery. Always verify your hardware’s ratings before adjusting defaults.