Skip to main content
Firmware Stable

State Machine

The system always exists in one of the predefined states, also known as modes. These modes are represented internally as numeric state variables.

You can access the current mode through the /mode variable located at the root level.

Mode NameMode NumberDescription
MODE_ERROR0Controller is in an error state. Either /driver/error or /common/error is non-zero.
MODE_OVERVOLTAGE80Generator stopped due to motor voltage exceeding battery voltage. Controller unable to regulate current.
MODE_MAX_TRIALS81Generator stopped after reaching the maximum number of startup attempts.
MODE_PAUSE82Generator is in pause mode between startup attempts.
MODE_DISARMED90Generator is disarmed. Turn input off, then back on to reset.
MODE_STOPPED91Generator is stopped. Switch is turned off.
MODE_PULLBACK100Generator is starting; pullback is currently in progress.
MODE_STARTING101Generator is currently starting.
MODE_RUNNING_NOLOAD110Generator is running without load.
MODE_RUNNING111Generator is running and actively generating power.
MODE_OVR200Driver is overridden via CAN or the run command.