31 #define PARACHUTE_AGL_THRESHOLD 6.0
34 #ifndef PARACHUTE_AGL_COUNTER_TRIGGER
35 #define PARACHUTE_AGL_COUNTER_TRIGGER 10
39 #ifndef PARACHUTE_ATT_ANGLE_THRESHOLD
40 #define PARACHUTE_ATT_ANGLE_THRESHOLD RadOfDeg(55.f)
50 #if PERIODIC_TELEMETRY
55 pprz_msg_send_DEBUG(trans,
dev, AC_ID, 3,
msg);
66 #if PERIODIC_TELEMETRY
94 static int32_t counter_agl_dist = 0;
96 counter_agl_dist += 1;
float agl_dist_value_filtered
Bind to agl ABI message and provide a filtered value to be used in flight plans.
struct pprz_autopilot autopilot
Global autopilot structure.
uint8_t mode
current autopilot mode
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
static struct EnuCoor_f * stateGetPositionEnu_f(void)
Get position in local ENU coordinates (float).
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)
#define PARACHUTE_AGL_THRESHOLD
#define PARACHUTE_ATT_ANGLE_THRESHOLD
void init_parachute(void)
#define PARACHUTE_AGL_COUNTER_TRIGGER
void check_parachute_arming(void)
struct Parachute parachute
void check_parachute_trigger(void)
void periodic_parachute(void)
static void send_parachute(struct transport_tx *trans, struct link_device *dev)
enum arming_method_t arming_method
@ OFF
ARMING OVERRIDE OFF.
Rotorcraft specific autopilot interface and initialization.
#define AP_MODE_RATE_DIRECT
#define AP_MODE_KILL
Static autopilot modes.
static const struct usb_device_descriptor dev
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
Periodic telemetry system header (includes downlink utility and generated code).
#define DefaultPeriodic
Set default periodic telemetry.
int int32_t
Typedef defining 32 bit int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.