|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
31 #include "generated/periodic_telemetry.h"
50 if (_pt == NULL) {
return -1; }
52 for (i = 0; i < _pt->
nb; i++) {
53 if (_pt->
cbs[i].
id == _id) {
69 #if USE_PERIODIC_TELEMETRY_REPORT
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.
void(* telemetry_cb)(struct transport_tx *trans, struct link_device *dev)
Telemetry callback definition.
struct telemetry_cb_slots telemetry_cbs[TELEMETRY_PPRZ_NB_MSG]
struct telemetry_cb_slots * cbs
array of callbacks defined through TELEMETRY_MSG
uint8_t id
id of telemetry message
#define TELEMETRY_NB_CBS
number of callbacks that can be registered per msg
Periodic telemetry structure.
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
uint8_t nb
number of messages
Common code for AP and FBW telemetry.
struct periodic_telemetry pprz_telemetry
Global telemetry structure.
telemetry_cb slots[TELEMETRY_NB_CBS]
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...