24 #include "generated/airframe.h"
34 #error auto1_commands COMMAND_GEAR needs RADIO_GEAR channel
36 imcu_set_command(COMMAND_GEAR, imcu_get_radio(
RADIO_GEAR));
40 #error auto1_commands COMMAND_FLAP needs RADIO_FLAP channel
42 imcu_set_command(COMMAND_FLAP, imcu_get_radio(
RADIO_FLAP));
46 #error auto1_commands COMMAND_AUX1 needs RADIO_AUX1 channel
48 imcu_set_command(COMMAND_AUX1, imcu_get_radio(
RADIO_AUX1));
52 #error auto1_commands COMMAND_AUX2 needs RADIO_AUX2 channel
54 imcu_set_command(COMMAND_AUX2, imcu_get_radio(
RADIO_AUX2));
58 #error auto1_commands COMMAND_AUX1 needs RADIO_AUX3 channel
60 imcu_set_command(COMMAND_AUX3, imcu_get_radio(
RADIO_AUX3));
64 #error auto1_commands COMMAND_AUX4 needs RADIO_AUX4 channel
66 imcu_set_command(COMMAND_AUX4, imcu_get_radio(
RADIO_AUX4));
70 #error auto1_commands COMMAND_AUX5 needs RADIO_AUX5 channel
72 imcu_set_command(COMMAND_AUX5, imcu_get_radio(
RADIO_AUX5));
76 #error auto1_commands COMMAND_AUX6 needs RADIO_AUX6 channel
78 imcu_set_command(COMMAND_AUX6, imcu_get_radio(
RADIO_AUX6));
82 #error auto1_commands COMMAND_AUX7 needs RADIO_AUX7 channel
84 imcu_set_command(COMMAND_AUX7, imcu_get_radio(
RADIO_AUX7));
88 #error auto1_commands COMMAND_BRAKE needs RADIO_BRAKE channel
90 imcu_set_command(COMMAND_BRAKE, imcu_get_radio(RADIO_BRAKE));
94 #error auto1_commands COMMAND_HATCH needs RADIO_HATCH channel
96 imcu_set_command(COMMAND_HATCH, imcu_get_radio(RADIO_HATCH));
Enable AUTO1 commands flaps and hatch from RC.
Communication between fbw and ap processes.
void periodic_auto1_commands(void)
Core autopilot interface common to all firmwares.
uint8_t autopilot_get_mode(void)
get autopilot mode