Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
e_identification_fr.c File Reference
#include "modules/e_identification_fr/e_identification_fr.h"
#include "state.h"
#include "mcu_periph/uart.h"
#include "subsystems/gps.h"
#include "generated/airframe.h"
#include "generated/flight_plan.h"
+ Include dependency graph for e_identification_fr.c:

Go to the source code of this file.

Macros

#define MAX_BUF_LEN   74
 
#define LEN_ID_FR   30
 
#define LEN_ID_SERIAL   24
 

Functions

static int put_ID (uint8_t *buf)
 
static int put_lat (uint8_t *buf)
 
static int put_lon (uint8_t *buf)
 
static int put_alt (uint8_t *buf)
 
static int put_horizontal_speed (uint8_t *buf)
 
static int put_route (uint8_t *buf)
 
static int put_lat_lon_home (uint8_t *buf)
 
void e_identification_fr_init ()
 
void e_identification_fr_periodic ()
 

Variables

static struct uart_periphdev = &(E_ID_DEV)
 
static char id_fr [LEN_ID_FR]
 

Detailed Description

Author
Fabien Bonneval Format and send via UART tracking data according to French requirements.

Definition in file e_identification_fr.c.

Macro Definition Documentation

#define LEN_ID_FR   30

Definition at line 39 of file e_identification_fr.c.

Referenced by e_identification_fr_init(), and put_ID().

#define LEN_ID_SERIAL   24

Definition at line 40 of file e_identification_fr.c.

Referenced by e_identification_fr_init().

#define MAX_BUF_LEN   74

Definition at line 37 of file e_identification_fr.c.

Referenced by e_identification_fr_periodic().

Function Documentation

void e_identification_fr_init ( void  )

Definition at line 145 of file e_identification_fr.c.

References id_fr, LEN_ID_FR, LEN_ID_SERIAL, and Min.

void e_identification_fr_periodic ( void  )

Definition at line 158 of file e_identification_fr.c.

References ck_a, ck_b, GpsState::fix, gps, MAX_BUF_LEN, offset, put_alt(), put_horizontal_speed(), put_ID(), put_lat(), put_lat_lon_home(), put_lon(), put_route(), and uart_put_buffer().

+ Here is the call graph for this function:

static int put_alt ( uint8_t buf)
static

Definition at line 71 of file e_identification_fr.c.

References E_ID_HMSL, gps, and GpsState::hmsl.

Referenced by e_identification_fr_periodic().

+ Here is the caller graph for this function:

static int put_horizontal_speed ( uint8_t buf)
static

Definition at line 80 of file e_identification_fr.c.

References E_ID_H_SPEED, and stateGetHorizontalSpeedNorm_f().

Referenced by e_identification_fr_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int put_ID ( uint8_t buf)
static

Definition at line 45 of file e_identification_fr.c.

References E_ID_ID_FR, id_fr, and LEN_ID_FR.

Referenced by e_identification_fr_periodic().

+ Here is the caller graph for this function:

static int put_lat ( uint8_t buf)
static

Definition at line 53 of file e_identification_fr.c.

References E_ID_LAT, LlaCoor_i::lat, and stateGetPositionLla_i().

Referenced by e_identification_fr_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int put_lat_lon_home ( uint8_t buf)
static
static int put_lon ( uint8_t buf)
static

Definition at line 62 of file e_identification_fr.c.

References E_ID_LON, LlaCoor_i::lon, and stateGetPositionLla_i().

Referenced by e_identification_fr_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int put_route ( uint8_t buf)
static

Definition at line 89 of file e_identification_fr.c.

References E_ID_ROUTE, INT32_DEG_OF_RAD, and stateGetHorizontalSpeedDir_f().

Referenced by e_identification_fr_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

struct uart_periph* dev = &(E_ID_DEV)
static

Definition at line 42 of file e_identification_fr.c.

char id_fr[LEN_ID_FR]
static

Definition at line 43 of file e_identification_fr.c.

Referenced by e_identification_fr_init(), and put_ID().