9 TEST(state_machine_test, error_check)
87 TEST(state_machine_test, arm_check)
221 TEST(state_machine_test, arm_throttle_check)
231 uint16_t rc_values[8];
232 for (
int i = 0;
i < 8;
i++)
234 rc_values[
i] = (
i > 3) ? 1000 : 1500;
271 ASSERT_EQ(
false, rf.
rc_.
switch_on(RC::Switch::SWITCH_THROTTLE_OVERRIDE));
293 ASSERT_EQ(
true, rf.
rc_.
switch_on(RC::Switch::SWITCH_THROTTLE_OVERRIDE));
300 TEST(state_machine_test, failsafe_check)
385 TEST(state_machine_test, corner_cases)
virtual void init_board()=0
static volatile bool error
void set_event(Event event)
bool switch_on(Switch channel)
void set_rc(uint16_t *values)
TEST(state_machine_test, error_check)
const State & state() const
void set_error(uint16_t error)
void clear_error(uint16_t error)
void step_firmware(rosflight_firmware::ROSflight &rf, rosflight_firmware::testBoard &board, uint32_t us)
void init()
Initialize parameter values.
StateManager state_manager_
void set_pwm_lost(bool lost)
void init()
Main initialization routine for the ROSflight autopilot flight stack.
bool set_param_int(uint16_t id, int32_t value)
Sets the value of a parameter by ID and calls the parameter change callback.