34#include "generated/airframe.h"
96#ifdef H_CTL_COURSE_SLEW_INCREMENT
103#ifdef H_CTL_RATE_LOOP
107#ifndef H_CTL_COURSE_PRE_BANK_CORRECTION
108#define H_CTL_COURSE_PRE_BANK_CORRECTION 1.
111#ifndef H_CTL_COURSE_DGAIN
112#define H_CTL_COURSE_DGAIN 0.
115#ifndef H_CTL_ROLL_RATE_GAIN
116#define H_CTL_ROLL_RATE_GAIN 0.
126#if PERIODIC_TELEMETRY
151#ifdef H_CTL_ROLL_PGAIN
155#ifdef H_CTL_AILERON_OF_THROTTLE
166#ifdef H_CTL_RATE_LOOP
175#ifdef H_CTL_ROLL_SLEW
179#ifdef H_CTL_COURSE_SLEW_INCREMENT
183#ifdef H_CTL_ROLL_ATTITUDE_GAIN
192#if PERIODIC_TELEMETRY
265#ifdef H_CTL_COURSE_SLEW_INCREMENT
292#if defined(AGR_CLIMB) && !USE_AIRSPEED
315#ifdef H_CTL_ROLL_SLEW
335#ifdef H_CTL_ROLL_ATTITUDE_GAIN
342 body_rate->
p = (err -
last_err) / (1 / 60.);
362#ifdef H_CTL_RATE_LOOP
378#ifdef H_CTL_RATE_LOOP
422inline static float loiter(
void)
440 return elevator_trim;
struct pprz_autopilot autopilot
Global autopilot structure.
Core autopilot interface common to all firmwares.
bool launch
request launch
pprz_t v_ctl_throttle_setpoint
uint8_t v_ctl_auto_throttle_submode
float v_ctl_auto_throttle_sum_err
float v_ctl_auto_throttle_nominal_cruise_throttle
float v_ctl_auto_throttle_cruise_throttle
float v_ctl_altitude_error
in meters, (setpoint - alt) -> positive = too low
float v_ctl_auto_throttle_min_cruise_throttle
float v_ctl_auto_throttle_max_cruise_throttle
Fixed wing horizontal control.
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
static struct FloatRates * stateGetBodyRates_f(void)
Get vehicle body angular rate (float).
static float stateGetHorizontalSpeedNorm_f(void)
Get norm of horizontal ground speed (float).
static float stateGetHorizontalSpeedDir_f(void)
Get dir of horizontal ground speed (float).
static float stateGetAngleOfAttack_f(void)
Get angle of attack (float).
#define V_CTL_AUTO_THROTTLE_AGRESSIVE
#define V_CTL_MODE_LANDING
#define V_CTL_AUTO_THROTTLE_BLENDED
arch independent LED (Light Emitting Diodes) API
Fixedwing Navigation library.
#define H_CTL_PITCH_DGAIN
void h_ctl_course_loop(void)
static void h_ctl_pitch_loop(void)
float h_ctl_pitch_setpoint
static void send_calibration(struct transport_tx *trans, struct link_device *dev)
pprz_t h_ctl_elevator_setpoint
#define H_CTL_COURSE_PRE_BANK_CORRECTION
float h_ctl_roll_max_setpoint
float h_ctl_elevator_of_roll
float h_ctl_roll_setpoint
static void h_ctl_roll_loop(void)
Computes h_ctl_aileron_setpoint from h_ctl_roll_setpoint.
pprz_t h_ctl_aileron_setpoint
float h_ctl_roll_rate_gain
void h_ctl_attitude_loop(void)
float h_ctl_roll_attitude_gain
float h_ctl_aileron_of_throttle
float h_ctl_pitch_loop_setpoint
#define H_CTL_COURSE_DGAIN
float h_ctl_course_pre_bank_correction
float h_ctl_course_pre_bank
float h_ctl_course_setpoint
#define H_CTL_ROLL_RATE_GAIN
API to get/set the generic vehicle states.
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.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.