Paparazzi UAS  v5.15_devel-109-gee85905
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
telemetry.h File Reference

Periodic telemetry system header (includes downlink utility and generated code). More...

#include "std.h"
#include "mcu_periph/uart.h"
#include "generated/periodic_telemetry.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for telemetry.h:

Go to the source code of this file.

Macros

#define DefaultPeriodic   (&pprz_telemetry)
 Set default periodic telemetry. More...
 

Variables

struct periodic_telemetry pprz_telemetry
 Global telemetry structure. More...
 

Detailed Description

Periodic telemetry system header (includes downlink utility and generated code).

In order to use it a subsystem/module:

  • include this header:
  • write a callback function:
    void your_callback(void) {
    // your code to send a telemetry message goes here
    }
  • register your callback function (if the message name doesn't match one of the names in your telemetry xml file or is already registered, the function return FALSE)
    register_periodic_telemetry(&your_telemetry_struct, DL_<YOUR_MESSAGE_NAME>, your_callback);
    In most cases, the default telemetry structure should be used (replace &your_telemetry_struct by DefaultPeriodic in the register function).

Definition in file telemetry.h.

Macro Definition Documentation

#define DefaultPeriodic   (&pprz_telemetry)

Set default periodic telemetry.

Definition at line 66 of file telemetry.h.

Referenced by actuators_bebop_init(), adc_generic_init(), ahrs_aligner_init(), ahrs_dcm_register(), ahrs_fc_register(), ahrs_float_invariant_register(), ahrs_ice_register(), ahrs_icq_register(), ahrs_infrared_init(), ahrs_mlkf_register(), ahrs_vectornav_init(), ahrs_vectornav_register(), air_data_init(), aoa_pwm_init(), autopilot_firmware_init(), autopilot_init(), battery_monitor_init(), bluegiga_init(), cam_init(), dcf_init(), detect_gate_init(), digital_cam_uart_init(), downlink_init(), dragspeed_init(), esc32_init(), extra_pprz_dl_periodic(), flight_recorder_periodic(), gec_dl_init(), gps_init(), gps_piksi_init(), guidance_h_init(), guidance_hybrid_init(), guidance_v_init(), gvf_init(), h_ctl_init(), hff_init(), i2c_init(), imu_gx3_init(), imu_init(), imu_vectornav_init(), init_fbw(), ins_ekf2_init(), ins_float_invariant_init(), ins_float_invariant_wrapper_init(), ins_gps_passthrough_init(), ins_int_init(), ins_mekf_wind_wrapper_init(), ins_vectornav_init(), intermcu_init(), jevois_mavlink_init(), link_mcu_init(), mag_pitot_init(), main_init(), main_periodic_task(), motor_mixing_init(), ms45xx_i2c_init(), nav_init(), nav_rover_init(), nav_survey_rectangle_rotorcraft_init(), navdata_init(), optical_flow_hover_init(), opticflow_module_init(), periodic_telemetry_handle(), radio_control_impl_init(), relative_localization_filter_init(), reporting_task(), rotorcraft_cam_init(), rpm_sensor_init(), sdlog_chibios_init(), sdlogger_spi_direct_periodic(), sdp3x_init(), stabilization_attitude_init(), stabilization_indi_init(), stabilization_rate_init(), superbitrf_init(), telemetry_intermcu_periodic(), telemetry_periodic(), temp_adc_init(), tfmini_init(), throttle_curve_init(), uart_periph_init(), vertical_ctrl_module_init(), vff_init(), and wind_estimator_init().

Variable Documentation

struct periodic_telemetry pprz_telemetry

Global telemetry structure.

Contains the list of message names and registered callbacks. Filled with generated structure from periodic_telemetry.h

Definition at line 37 of file telemetry.c.