Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
extra_pprz_dl.c File Reference

Extra datalink and telemetry using PPRZ protocol. More...

+ Include dependency graph for extra_pprz_dl.c:

Go to the source code of this file.

Macros

#define PERIODIC_C_EXTRA
 
#define EXTRA_PPRZ_UPDATE_DL   FALSE
 

Functions

void extra_pprz_dl_init (void)
 Init function. More...
 
void extra_pprz_dl_event (void)
 Datalink Event. More...
 
void extra_pprz_dl_periodic (void)
 Periodic function. More...
 

Variables

bool extra_dl_msg_available
 
uint8_t extra_dl_buffer [MSG_SIZE]
 
struct pprz_transport extra_pprz_tp
 

Detailed Description

Extra datalink and telemetry using PPRZ protocol.

NOTES (for future reference): This note is not needed unless we want to define our own messages - in such case you would define the two structs below and then define individual messages and registered them in the same way as periodic telemetry. struct telemetry_cb_slots telemetry_cbs_logger[TELEMETRY_PPRZ_NB_MSG] = TELEMETRY_PPRZ_CBS; struct periodic_telemetry logger_telemetry = { TELEMETRY_PPRZ_NB_MSG, telemetry_cbs_logger };

The registration should be done in the init function: register_periodic_telemetry(&extra_telemetry, PPRZ_MSG_ID_xxx, send_xxx_message);

Two extra notes for the periodic function: 1) this sends registered messages from ExtraTelemetry process (as mentioned above) over dedicated port do: periodic_telemetry_send_ExtraTelemetry(&extra_telemetry, &pprz_tp_extra.trans_tx, &(EXTRA_TELEMETRY_PORT).device); 2) to send ExtraTelemetry messages over default channel just change to: periodic_telemetry_send_ExtraTelemetry(DefaultPeriodic, &(DefaultChannel).trans_tx, &(DefaultDevice).device);

Definition in file extra_pprz_dl.c.

Macro Definition Documentation

◆ EXTRA_PPRZ_UPDATE_DL

#define EXTRA_PPRZ_UPDATE_DL   FALSE

Definition at line 51 of file extra_pprz_dl.c.

◆ PERIODIC_C_EXTRA

#define PERIODIC_C_EXTRA

Definition at line 44 of file extra_pprz_dl.c.

Function Documentation

◆ extra_pprz_dl_event()

void extra_pprz_dl_event ( void  )

Datalink Event.

Definition at line 65 of file extra_pprz_dl.c.

References DlCheckAndParse(), extra_dl_buffer, extra_dl_msg_available, extra_pprz_tp, and EXTRA_PPRZ_UPDATE_DL.

+ Here is the call graph for this function:

◆ extra_pprz_dl_init()

void extra_pprz_dl_init ( void  )

Init function.

Definition at line 59 of file extra_pprz_dl.c.

References extra_pprz_tp.

◆ extra_pprz_dl_periodic()

void extra_pprz_dl_periodic ( void  )

Periodic function.

should be called at TELEMETRY_FREQUENCY

Definition at line 72 of file extra_pprz_dl.c.

References DefaultPeriodic, and extra_pprz_tp.

Variable Documentation

◆ extra_dl_buffer

◆ extra_dl_msg_available

bool extra_dl_msg_available

Definition at line 54 of file extra_pprz_dl.c.

Referenced by extra_pprz_dl_event().

◆ extra_pprz_tp