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

Handling of messages coming from ground and other A/Cs. More...

#include <inttypes.h>
#include <string.h>
#include "subsystems/datalink/datalink.h"
#include "generated/modules.h"
#include "subsystems/navigation/common_nav.h"
#include "generated/settings.h"
#include "math/pprz_geodetic_float.h"
#include "mcu_periph/uart.h"
#include "subsystems/datalink/telemetry.h"
+ Include dependency graph for datalink.c:

Go to the source code of this file.

Macros

#define DATALINK_C
 
#define MODULES_DATALINK_C
 
#define MOfCm(_x)   (((float)(_x))/100.)
 
#define MOfMM(_x)   (((float)(_x))/1000.)
 
#define SenderIdOfMsg(x)   (x[0])
 
#define IdOfMsg(x)   (x[1])
 

Functions

void dl_parse_msg (void)
 Should be called when chars are available in dl_buffer. More...
 

Detailed Description

Handling of messages coming from ground and other A/Cs.

Definition in file datalink.c.

Macro Definition Documentation

#define DATALINK_C

Definition at line 28 of file datalink.c.

#define IdOfMsg (   x)    (x[1])

Definition at line 81 of file datalink.c.

Referenced by dl_parse_msg().

#define MODULES_DATALINK_C

Definition at line 30 of file datalink.c.

#define MOfCm (   _x)    (((float)(_x))/100.)

Definition at line 77 of file datalink.c.

Referenced by dl_parse_msg().

#define MOfMM (   _x)    (((float)(_x))/1000.)

Definition at line 78 of file datalink.c.

Referenced by dl_parse_msg().

#define SenderIdOfMsg (   x)    (x[0])

Definition at line 80 of file datalink.c.

Referenced by dl_parse_msg().

Function Documentation