41 #if PERIODIC_TELEMETRY
43 #include "generated/settings.h"
45 #if defined RADIO_CALIB && defined RADIO_CONTROL_SETTINGS
47 static void send_rc_settings(
struct transport_tx *trans,
struct link_device *
dev)
57 static void send_mode(
struct transport_tx *trans,
struct link_device *
dev)
59 pprz_msg_send_PPRZ_MODE(trans, dev, AC_ID,
65 pprz_msg_send_ESTIMATOR(trans, dev, AC_ID,
73 pprz_msg_send_ENERGY(trans, dev, AC_ID,
85 pprz_msg_send_DESIRED(trans, dev, AC_ID,
88 &v_ctl_auto_airspeed_setpoint);
91 static void send_airspeed(
struct transport_tx *trans __attribute__((unused)),
92 struct link_device *
dev __attribute__((unused)))
96 pprz_msg_send_AIRSPEED(trans,
dev, AC_ID,
101 pprz_msg_send_AIRSPEED(trans,
dev, AC_ID, &airspeed, &zero, &zero, &zero);
124 #if PERIODIC_TELEMETRY
131 #if defined RADIO_CALIB && defined RADIO_CONTROL_SETTINGS
uint8_t mcu1_status
Second MCU status (FBW part)
static void send_airspeed(struct transport_tx *trans, struct link_device *dev)
void autopilot_firmware_init(void)
Init function.
float v_ctl_altitude_setpoint
in meters above MSL
Variable setting though the radio control.
Periodic telemetry system header (includes downlink utility and generated code).
float h_ctl_course_setpoint
float v_ctl_auto_groundspeed_setpoint
in meters per second
float v_ctl_climb_setpoint
static float stateGetAirspeed_f(void)
Get airspeed (float).
float vsupply
supply voltage in V
struct pprz_autopilot autopilot
Global autopilot structure.
float v_ctl_auto_airspeed_setpoint
in meters per second
Fixed wing horizontal control.
bool bat_critical
battery critical status
static void send_desired(struct transport_tx *trans, struct link_device *dev)
Fixedwing specific autopilot interface and initialization.
float charge
consumed electric charge in Ah
float h_ctl_pitch_loop_setpoint
#define DefaultPeriodic
Set default periodic telemetry.
static void send_estimator(struct transport_tx *trans, struct link_device *dev)
bool bat_low
battery low status
void autopilot_send_mode(void)
Report autopilot mode on default downlink channel.
static const struct usb_device_descriptor dev
static struct UtmCoor_f * stateGetPositionUtm_f(void)
Get position in UTM coordinates (float).
API to get/set the generic vehicle states.
float h_ctl_roll_setpoint
static struct EnuCoor_f * stateGetSpeedEnu_f(void)
Get ground speed in local ENU coordinates (float).
static void send_energy(struct transport_tx *trans, struct link_device *dev)
float energy
consumed energy in Wh
static void send_mode(struct transport_tx *trans, struct link_device *dev)
float current
current in A
Fixedwing Navigation library.
struct Electrical ap_electrical
uint8_t mode
current autopilot mode
float v_ctl_auto_airspeed_controlled
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
pprz_t throttle
throttle level as will be displayed in GCS