Skip to main content
Firmware Stable

Limiter state

limit​

is located in the /driver/limit folder.

Is a bitwise number. Each bit represents activation of each limiter. This will not tell you how much output power is limited. For that, check value of /driver/total_limit The bits of the battery and cell voltage limiters stay set until their limitation is fully released.

/driver/limit
ValueNameDescription
1DRIVER_LIMIT_IBPOSBattery positive current higher than ibpos
2DRIVER_LIMIT_IBNEGBattery negative current higher than ibneg
4DRIVER_LIMIT_UBMINBattery voltage lower than ubmin
8DRIVER_LIMIT_UBMAXBattery voltage higher than ubmax
16DRIVER_LIMIT_PPOSPositive power higher than ppos
32DRIVER_LIMIT_PNEGNegative power higher than pneg
64DRIVER_LIMIT_RPOSPositive RPM higher than rpos
128DRIVER_LIMIT_RNEGNegative RPM higher than rneg
256DRIVER_LIMIT_MOTORTEMPMeasured motor temperature higher than mtemplo
512DRIVER_LIMIT_MRESMotor temperature (estimated from winding resistance) higher than mreslo
1024DRIVER_LIMIT_BTEMPBattery temperature higher than btempmaxlo or lower than btempminlo
2048DRIVER_LIMIT_BCELLCell voltage higher than bcellmax or lower than bcellmin
4096DRIVER_LIMIT_CSRSweep rate limiter active
8192DRIVER_LIMIT_EXTExternal (application) limiter active
16384DRIVER_LIMIT_IMULTimult is not equal to 1
32768DRIVER_LIMIT_UMULTumult is not equal to 1

ibposmult and ibnegmult [-]​

is located in the /driver/limit folder. The externally set scaler (from the application). It scales the ibpos, resp ibneg limiters. If the ibpos, resp ibneg are set to 0, the ibposmult, resp ibnegmult will not have any effect.

info

This is often used to map to BMS's current limitation.

elimit [-]​

is located in the /driver/limit folder.

This is the value of the external limiter (issued from the application).

totallimit [-]​

is located in the /driver folder.

Total actual limitation of the Q-axis current. Note that the outputs from both high-priority protections (temperature derating and ADC error) and low-priority limiters are aggregated into this value.

limits value meaning
  • 1 = no limitation. (Driver have 100% of its current available)
  • 0 = full limitation. (Driver have 0% of its current available)