32#include "generated/periodic_telemetry.h"
33#if FIXEDWING_FIRMWARE || ROTORCRAFT_FIRMWARE || ROVER_FIRMWARE
57 for (i = 0; i <
_pt->nb; i++) {
58 if (
_pt->cbs[i].id ==
_id) {
79#if FIXEDWING_FIRMWARE || ROTORCRAFT_FIRMWARE || ROVER_FIRMWARE
84#if DOWNLINK && !(defined INTERMCU_FBW)
95#if FBW || !TELEMETRY_INTERMCU
106#if USE_PERIODIC_TELEMETRY_REPORT
void autopilot_send_version(void)
send autopilot version
Core autopilot interface common to all firmwares.
Common code for AP and FBW telemetry.
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
struct telemetry_cb_slots telemetry_cbs[TELEMETRY_PPRZ_NB_MSG]
struct periodic_telemetry pprz_telemetry
Global telemetry structure.
void telemetry_reporting_task(void)
Peridioc task Send a series of initialisation messages followed by a stream of periodic ones.
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
void periodic_telemetry_err_report(uint8_t _process, uint8_t _mode, uint8_t _id)
Send an error report when trying to send message that as not been register.
Periodic telemetry system header (includes downlink utility and generated code).
#define DefaultPeriodic
Set default periodic telemetry.
Common tools for periodic telemetry interface Allows subsystem to register callback functions.
telemetry_cb slots[TELEMETRY_NB_CBS]
#define TELEMETRY_NB_CBS
number of callbacks that can be registered per msg
void(* telemetry_cb)(struct transport_tx *trans, struct link_device *dev)
Telemetry callback definition.
Periodic telemetry structure.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
signed char int8_t
Typedef defining 8 bit char type.