29 #ifndef AUTOPILOT_UTILS_H
30 #define AUTOPILOT_UTILS_H
36 #ifndef FAILSAFE_DESCENT_SPEED
37 #define FAILSAFE_DESCENT_SPEED 1.5
40 #if defined RADIO_MODE_2x3
41 extern uint8_t ap_mode_of_3x2way_switch(
void);
45 #if defined RADIO_AUTO_MODE || defined(__DOXYGEN__)
46 extern uint8_t ap_mode_of_two_switches(
void)
63 #define SetRotorcraftCommands(_cmd, _in_flight, _motors_on) set_rotorcraft_commands(commands, _cmd, _in_flight, _motors_on)
Hardware independent code for commands handling.
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.
int int32_t
Typedef defining 32 bit int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.