It's not possible to switch from ARMED_ERROR (e.g. when battery level is critical) to STANDBY, only to STANDBY_ERROR, need to check this! But maybe it's better to implement it in state_machine_helper.cpp: if current state is ARMED_ERROR and STANDBY requested then switch to STANDBY_ERROR instead.