36 #include "rosflight.h" 69 failsafe_command_(multirotor_failsafe_command_)
135 switch (roll_pitch_type)
180 bool override_this_channel =
false;
185 override_this_channel =
true;
189 if (
muxes[channel].onboard->active)
191 override_this_channel =
false;
195 override_this_channel =
true;
200 return override_this_channel;
205 bool override_this_channel =
false;
209 override_this_channel =
true;
222 override_this_channel =
false;
227 override_this_channel =
true;
233 return override_this_channel;
243 for (
int i = 0;
i < 4;
i++)
245 if (
muxes[
i].onboard->active)
rc_stick_override_t rc_stick_override_[3]
bool switch_mapped(Switch channel)
virtual void led0_off()=0
void param_change_callback(uint16_t param_id)
control_t offboard_command_
control_t combined_command_
uint32_t last_override_time
control_t fixedwing_failsafe_command_
bool switch_on(Switch channel)
control_channel_t * combined
float stick(Stick channel)
CommManager comm_manager_
bool offboard_control_active()
float get_param_float(uint16_t id) const
Get the value of a floating point parameter by id.
rc_stick_override_t rc_stick_override[]
bool rc_override_active()
void add_callback(std::function< void(int)> callback, uint16_t param_id)
const State & state() const
void set_new_offboard_command(control_t new_offboard_command)
control_t multirotor_failsafe_command_
control_t & failsafe_command_
control_channel_t * onboard
CommandManager(ROSflight &_rf)
virtual uint32_t clock_millis()=0
int get_param_int(uint16_t id) const
Get the value of an integer parameter by id.
void set_new_rc_command(control_t new_rc_command)
bool do_roll_pitch_yaw_muxing(MuxChannel channel)
StateManager state_manager_
bool stick_deviated(MuxChannel channel)
uint32_t last_override_time
control_channel_t * combined
void override_combined_command_with_rc()
control_channel_t * onboard
bool do_throttle_muxing(void)