Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
downlink.c File Reference

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

#include "subsystems/datalink/downlink.h"
#include "generated/airframe.h"
#include "subsystems/datalink/datalink.h"
#include "subsystems/datalink/telemetry.h"
#include "mcu_periph/sys_time.h"
+ 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

void downlink_init ( void  )

Definition at line 86 of file downlink.c.

References BLUEGIGA, bluegiga_init(), bluegiga_p, datalink_nb_msgs, DefaultDevice, DefaultPeriodic, get_sys_time_usec(), PPRZ, register_periodic_telemetry(), send_downlink(), SUPERBITRF, sys_time_usleep(), W5100, and w5100_init().

Referenced by init_ap(), main(), and main_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 62 of file downlink.c.

References datalink_nb_msgs, datalink_time, 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

uint32_t last_down_nb_bytes = 0
static

Definition at line 58 of file downlink.c.

Referenced by send_downlink().

uint32_t last_ts = 0
static

Definition at line 60 of file downlink.c.

Referenced by send_downlink().

uint32_t last_up_nb_msgs = 0
static

Definition at line 59 of file downlink.c.

Referenced by send_downlink().