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

Common code for AP and FBW telemetry. More...

+ Include dependency graph for downlink.c:

Go to the source code of this file.

Functions

static void send_downlink (struct transport_tx *trans, struct link_device *dev)
 
void downlink_init (void)
 

Variables

static uint32_t last_down_nb_bytes = 0
 
static uint32_t last_up_nb_msgs = 0
 
static uint32_t last_ts = 0
 

Detailed Description

Common code for AP and FBW telemetry.

Definition in file downlink.c.

Function Documentation

◆ downlink_init()

void downlink_init ( void  )

Definition at line 67 of file downlink.c.

References DefaultDevice, DefaultPeriodic, register_periodic_telemetry(), and send_downlink().

Referenced by main_init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ send_downlink()

static void send_downlink ( struct transport_tx *  trans,
struct link_device *  dev 
)
static

Definition at line 43 of file downlink.c.

References datalink_nb_msgs, datalink_time, dev, get_sys_time_msec(), last_down_nb_bytes, last_ts, and last_up_nb_msgs.

Referenced by downlink_init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ last_down_nb_bytes

uint32_t last_down_nb_bytes = 0
static

Definition at line 39 of file downlink.c.

Referenced by send_downlink().

◆ last_ts

uint32_t last_ts = 0
static

Definition at line 41 of file downlink.c.

Referenced by send_downlink().

◆ last_up_nb_msgs

uint32_t last_up_nb_msgs = 0
static

Definition at line 40 of file downlink.c.

Referenced by send_downlink().