34 #include "rosflight.h" 141 "RC throttle override must be active to arm");
278 data.arm_flag =
state_.
armed ? BackupData::ARM_MAGIC : 0;
294 if (data.valid_checksum())
298 if (data.arm_flag == BackupData::ARM_MAGIC)
void write_backup_data(const BackupData::DebugInfo &debug)
Write recovery data to backup memory in the case of a hard fault.
static volatile bool error
void log(CommLinkInterface::LogSeverity severity, const char *fmt,...)
virtual void backup_memory_write(const void *src, size_t len)=0
void set_event(Event event)
uint32_t hardfault_count_
bool switch_on(Switch channel)
float stick(Stick channel)
virtual void backup_memory_init()=0
CommManager comm_manager_
float get_param_float(uint16_t id) const
Get the value of a floating point parameter by id.
virtual void backup_memory_clear(size_t len)=0
bool start_gyro_calibration(void)
void set_error(uint16_t error)
void clear_error(uint16_t error)
void check_backup_memory()
void send_backup_data(const StateManager::BackupData &backup_data)
virtual uint32_t clock_millis()=0
virtual void led1_toggle()=0
int get_param_int(uint16_t id) const
Get the value of an integer parameter by id.
StateManager(ROSflight &parent)
virtual void led1_off()=0
virtual bool backup_memory_read(void *dest, size_t len)=0
uint32_t next_led_blink_ms_
uint32_t next_arming_error_msg_ms_