29 #ifndef AUTOPILOT_UTILS_H
30 #define AUTOPILOT_UTILS_H
36 #ifndef FAILSAFE_DESCENT_SPEED
37 #define FAILSAFE_DESCENT_SPEED 1.5
41 #if defined RADIO_MODE_2x3
42 extern uint8_t ap_mode_of_3x2way_switch(
void);
46 #if defined RADIO_AUTO_MODE || defined(__DOXYGEN__)
47 extern uint8_t ap_mode_of_two_switches(
void)
64 #define SetRotorcraftCommands(_cmd, _in_flight, _motors_on) set_rotorcraft_commands(commands, _cmd, _in_flight, _motors_on)
66 #endif // AUTOPILOT_UTILS_H
Hardware independent code for commands handling.
bool ap_ahrs_is_aligned(void)
Display descent speed in failsafe mode if needed.
uint8_t ap_mode_of_3way_switch(void)
get autopilot mode as set by RADIO_MODE 3-way switch
void set_rotorcraft_commands(pprz_t *cmd_out, int32_t *cmd_in, bool in_flight, bool motors_on)
Set Rotorcraft commands.