Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
telemetry.c File Reference

Periodic telemetry system utility function. More...

+ Include dependency graph for telemetry.c:

Go to the source code of this file.

Functions

bool_t register_periodic_telemetry (struct pprz_telemetry *_pt, const char *_msg, telemetry_cb _cb)
 Register a telemetry callback function. More...
 
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. More...
 

Detailed Description

Periodic telemetry system utility function.

Definition in file telemetry.c.

Function Documentation

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.

Parameters
_processtelemetry process id
_modetelemetry mode
_idid of the message in telemetry system (see var/<AC>/generated/periodic_telemetry.h)

Definition at line 64 of file telemetry.c.

References DefaultChannel, and DefaultDevice.

bool_t register_periodic_telemetry ( struct pprz_telemetry _pt,
const char *  _msg,
telemetry_cb  _cb 
)

Register a telemetry callback function.

Parameters
_ptperiodic telemetry structure to register
_msgmessage name (string) as defined in telemetry xml file
_cbcallback function, called according to telemetry mode and specified period
Returns
TRUE if message registered with success, FALSE otherwise

Definition at line 38 of file telemetry.c.

References telemetry_msg::cb, FALSE, telemetry_msg::msg, pprz_telemetry::msgs, pprz_telemetry::nb, and TRUE.

Referenced by ahrs_aligner_init(), ahrs_init(), air_data_init(), autopilot_init(), b2_hff_init(), cam_init(), gps_init(), guidance_h_init(), guidance_v_init(), h_ctl_init(), i2c_init(), imu_impl_init(), imu_init(), init_ap(), init_fbw(), ins_init(), link_mcu_init(), nav_init(), navdata_init(), radio_control_impl_init(), rotorcraft_cam_init(), stabilization_attitude_init(), stabilization_rate_init(), superbitrf_init(), uart_periph_init(), and vff_init().

+ Here is the caller graph for this function: