30 #include "generated/modules.h"
40 #if NO_GPS_NEEDED_FOR_NAV
41 #define GpsIsLost() FALSE
43 #define GpsIsLost() TRUE
64 pprz_msg_send_ROVER_STATUS(trans, dev, AC_ID,
74 pprz_msg_send_ENERGY(trans, dev, AC_ID,
78 static void send_fp(
struct transport_tx *trans,
struct link_device *
dev)
85 pprz_msg_send_ROTORCRAFT_FP(trans, dev, AC_ID,
107 #ifdef RADIO_KILL_SWITCH
112 pprz_msg_send_ROTORCRAFT_RADIO_CONTROL(trans, dev, AC_ID,
int32_t psi
in rad with INT32_ANGLE_FRAC
struct RoverNavigation nav
void autopilot_firmware_init(void)
Init function.
Periodic telemetry system header (includes downlink utility and generated code).
int32_t theta
in rad with INT32_ANGLE_FRAC
#define POS_BFP_OF_REAL(_af)
static void send_energy(struct transport_tx *trans, struct link_device *dev)
uint16_t flight_time
flight time in seconds
float vsupply
supply voltage in V
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
struct pprz_autopilot autopilot
Global autopilot structure.
Interface for electrical status: supply voltage, current, battery status, etc.
float charge
consumed electric charge in Ah
Device independent GPS code (interface)
Rover specific autopilot interface and initialization.
#define DefaultPeriodic
Set default periodic telemetry.
struct RadioControl radio_control
static void send_rotorcraft_rc(struct transport_tx *trans, struct link_device *dev)
static void send_fp(struct transport_tx *trans, struct link_device *dev)
Optional exceptions triggeringg HOME_MODE 1) GEOFENCE_DATALINK_LOST_TIME: go to HOME mode if datalink...
float heading
heading setpoint (in radians)
#define ANGLE_BFP_OF_REAL(_af)
static const struct usb_device_descriptor dev
void autopilot_event(void)
autopilot event function
int32_t phi
in rad with INT32_ANGLE_FRAC
static void send_status(struct transport_tx *trans, struct link_device *dev)
bool motors_on
motor status
volatile uint32_t nb_sec
full seconds since startup
static struct EnuCoor_i * stateGetSpeedEnu_i(void)
Get ground speed in local ENU coordinates (int).
float energy
consumed energy in Wh
struct Electrical electrical
static struct EnuCoor_i * stateGetPositionEnu_i(void)
Get position in local ENU coordinates (int).
#define RADIO_KILL_SWITCH
float current
current in A
static struct Int32Eulers * stateGetNedToBodyEulers_i(void)
Get vehicle body attitude euler angles (int).
struct EnuCoor_f carrot
carrot position
struct GpsState gps
global GPS state
uint8_t mode
current autopilot mode
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