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,
78 float power = vsup * curs;
79 pprz_msg_send_ENERGY(trans, dev, AC_ID, &vsup, &curs, &e, &power);
82 static void send_fp(
struct transport_tx *trans,
struct link_device *
dev)
89 pprz_msg_send_ROTORCRAFT_FP(trans, dev, AC_ID,
111 #ifdef RADIO_KILL_SWITCH
116 pprz_msg_send_ROTORCRAFT_RADIO_CONTROL(trans, dev, AC_ID,
struct RoverNavigation nav
int32_t current
current in milliamps
void autopilot_firmware_init(void)
Init function.
Periodic telemetry system header (includes downlink utility and generated code).
#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
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
struct pprz_autopilot autopilot
Global autopilot structure.
Interface for electrical status: supply voltage, current, battery status, etc.
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
static void send_status(struct transport_tx *trans, struct link_device *dev)
bool motors_on
arming status
pprz_t commands[COMMANDS_NB]
Storage of intermediate command values.
volatile uint32_t nb_sec
full seconds since startup
static struct EnuCoor_i * stateGetSpeedEnu_i(void)
Get ground speed in local ENU coordinates (int).
uint16_t vsupply
supply voltage in decivolts
float energy
consumed energy in mAh
struct Electrical electrical
static struct EnuCoor_i * stateGetPositionEnu_i(void)
Get position in local ENU coordinates (int).
#define RADIO_KILL_SWITCH
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.