Skip to main content
Firmware Stable

Protection state

info

The following variables are located in the /driver folder.

stat​

This value can be regarded to as a warning indication. Non-zero value signifies that a protection was triggered, but the condition is recoverable and will go to zero again once the issue passes.

If any of high-priority limiters is active or, a warning is raised, driver flag status word is non-zero. It means that controller is protecting itself from damage. Driver status word is also non-zero in some cases of hardware fault. Each bit of driver status word represents one of situations listed below. Driver status word can be found in /driver/stat.

For convenience and accessibility, after triggering, the bits in /driver/stat are kept set for at least a second. Similarly, the bits are reset all at once, only if all the triggers are clear for more than one second.

/driver/stat
ValueNameDescription
1OvercurrentCurrent greater than `ipeak` was detected; the driver actively prevents it from rising further and resumes normal control when the condition passes.
2UndervoltageBattery voltage is below the minimum operating voltage. Motor current is limited to prevent the voltage from further falling. If the voltage falls too low, driver error is raised and motor is stopped.
4OvertempController over-temperature was detected, from either I2R limiter, limit temperature sensor `/driver/ptctemp`, or average temperature `/driver/temp`.
8OvervoltageBattery voltage risen above the maximum operating voltage. Motor current is limited to prevent the voltage from further rising. If voltage goes too high, driver error is raised and motor is stopped.
16Sensor errorRotor angle sensor problem was detected.
32ADC errorAn internal analog circuitry error.
64Sync errorAn internal firmware timing synchronization error, typically caused by the MCU overload.
128RangeController is operating outside of the specified ranges (voltage, current or speed) and power may be limited.