29 #ifndef AUTOPILOT_STATIC_H
30 #define AUTOPILOT_STATIC_H
36 #define AP_MODE_MANUAL 0
37 #define AP_MODE_AUTO1 1
38 #define AP_MODE_AUTO2 2
39 #define AP_MODE_HOME 3
40 #define AP_MODE_GPS_OUT_OF_ORDER 4
62 #ifndef CONTROL_FREQUENCY
64 #define CONTROL_FREQUENCY CONTROL_RATE
65 #warning "CONTROL_RATE is deprecated. Please use CONTROL_FREQUENCY instead. Defaults to 60Hz if not defined."
67 #define CONTROL_FREQUENCY 60
68 #endif // CONTROL_RATE
69 #endif // CONTROL_FREQUENCY
71 #ifndef NAVIGATION_FREQUENCY
72 #define NAVIGATION_FREQUENCY 4
void autopilot_static_set_motors_on(bool motors_on)
void autopilot_static_periodic(void)
void autopilot_static_SetModeHandler(float new_autopilot_mode)
AP mode setting handler.
void autopilot_static_init(void)
Static autopilot functions.
void navigation_task(void)
Control loops FIXME should be somewhere else.
Core autopilot interface common to all firmwares.
void autopilot_static_on_rc_frame(void)
Function to be called when a message from FBW is available.
void autopilot_static_set_mode(uint8_t new_autopilot_mode)