34 #include "generated/modules.h"
37 #ifndef TAKEOFF_DETECT_LAUNCH_PITCH
38 #define TAKEOFF_DETECT_LAUNCH_PITCH RadOfDeg(30.)
42 #ifndef TAKEOFF_DETECT_ABORT_PITCH
43 #define TAKEOFF_DETECT_ABORT_PITCH RadOfDeg(-20.)
47 #ifndef TAKEOFF_DETECT_TIMER
48 #define TAKEOFF_DETECT_TIMER 2.
52 #ifndef TAKEOFF_DETECT_DISABLE_TIMER
53 #define TAKEOFF_DETECT_DISABLE_TIMER 4.
93 #ifndef TAKEOFF_DETECT_ALSO_IN_AUTO1
118 #ifndef TAKEOFF_DETECT_ALSO_IN_AUTO1
138 takeoff_detect_takeoff_detect_periodic_status = MODULES_STOP;
bool launch
request launch
Automatic takeoff assistance for fixed-wing.
#define TAKEOFF_DETECT_LAUNCH_PITCH
Default pitch angle to trigger launch.
void takeoff_detect_start(void)
Start function called once before periodic.
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
#define TAKEOFF_DETECT_ABORT_PITCH
Default pitch angle to cancel launch.
struct pprz_autopilot autopilot
Global autopilot structure.
takeoff_detect_state
Takeoff detection states.
#define TAKEOFF_DETECT_DISABLE_TIMER
Disable timer in seconds.
void takeoff_detect_periodic(void)
Periodic call.
#define TAKEOFF_DETECT_TIMER
Detection timer in seconds.
void takeoff_detect_init(void)
Init function.
Core autopilot interface common to all firmwares.
API to get/set the generic vehicle states.
Takeoff detection structure.
enum takeoff_detect_state state
static struct takeoff_detect_struct takeoff_detect
uint8_t autopilot_get_mode(void)
get autopilot mode