Skip to main content
All parameters belong to the mc_configuration struct defined in datatypes.h. Default values are set in motor/mcconf_default.h and can be overridden per hardware target.
Hardware-specific builds may override any of these defaults. The values shown here are the firmware-wide defaults that apply when no hardware override is present.

Current limits

Setting l_abs_current_max above the hardware current rating can destroy MOSFETs. Always set this below the gate driver and FET peak current specification.

Voltage limits

Set l_battery_cut_start and l_battery_cut_end to match your battery chemistry’s minimum cell voltage multiplied by cell count, to protect cells from deep discharge.

Temperature limits

RPM limits

Motor parameters

These parameters describe the physical motor and are normally determined by running motor detection in VESC Tool.
The default motor parameters are placeholders. Always run motor detection for accurate FOC operation.

FOC parameters

Field weakening increases motor and FET stress. Start with foc_fw_current_max set to a small fraction of l_current_max and monitor temperatures carefully.

Speed PID parameters

Position PID parameters

Miscellaneous parameters