13 TEST(command_manager_test, rc)
22 uint16_t rc_values[8];
23 for (
int i = 0;
i < 8;
i++)
71 TEST(command_manager_test, rc_arm_disarm)
83 uint16_t rc_values[8];
84 for (
int i = 0;
i < 8;
i++)
245 TEST(command_manager_test, rc_failsafe_test)
257 uint16_t rc_values[8];
258 for (
int i = 0;
i < 8;
i++)
377 #define OFFBOARD_X -1.0 378 #define OFFBOARD_Y 0.5 379 #define OFFBOARD_Z -0.7 380 #define OFFBOARD_F 0.9 382 #define RC_X_PWM 1800 383 #define RC_X ((RC_X_PWM - 1500)/500.0 * rf.params_.get_param_float(PARAM_RC_MAX_ROLL)) 385 TEST(command_manager_test, rc_offboard_muxing_test)
400 uint16_t rc_values[8];
401 for (
int i = 0;
i < 8;
i++)
590 TEST(command_manager_test, partial_muxing_test)
603 uint16_t rc_values[8];
604 for (
int i = 0;
i < 8;
i++)
647 offboard_command.
F.
value = 0.2;
674 offboard_command.
y.
active =
false;
uint32_t clock_millis() override
const control_t & combined_control() const
uint64_t clock_micros() override
void set_rc(uint16_t *values)
float get_param_float(uint16_t id) const
Get the value of a floating point parameter by id.
TEST(command_manager_test, rc)
const State & state() const
void set_new_offboard_command(control_t new_offboard_command)
void clear_error(uint16_t error)
int get_param_int(uint16_t id) const
Get the value of an integer parameter by id.
void step_firmware(rosflight_firmware::ROSflight &rf, rosflight_firmware::testBoard &board, uint32_t us)
StateManager state_manager_
void set_pwm_lost(bool lost)
CommandManager command_manager_
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.
#define EXPECT_CLOSE(x, y)