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;
uint8_t autopilot_get_mode(void)
get autopilot mode
struct pprz_autopilot autopilot
Global autopilot structure.
Core autopilot interface common to all firmwares.
bool launch
request launch
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
API to get/set the generic vehicle states.
void takeoff_detect_periodic(void)
Periodic call.
enum takeoff_detect_state state
#define TAKEOFF_DETECT_LAUNCH_PITCH
Default pitch angle to trigger launch.
#define TAKEOFF_DETECT_DISABLE_TIMER
Disable timer in seconds.
static struct takeoff_detect_struct takeoff_detect
void takeoff_detect_start(void)
Start function called once before periodic.
#define TAKEOFF_DETECT_TIMER
Detection timer in seconds.
#define TAKEOFF_DETECT_ABORT_PITCH
Default pitch angle to cancel launch.
takeoff_detect_state
Takeoff detection states.
void takeoff_detect_init(void)
Init function.
Takeoff detection structure.
Automatic takeoff assistance for fixed-wing.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.