Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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   50
 

Functions

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 ()
 
 if (GpsFixValid() &&e_identification_started)
 

Variables

static struct uart_periphdev = &(E_ID_DEV)
 
bool e_identification_started = false
 

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

◆ MAX_BUF_LEN

#define MAX_BUF_LEN   50

Definition at line 37 of file e_identification_fr.c.

Function Documentation

◆ e_identification_fr_init()

void e_identification_fr_init ( )

Definition at line 142 of file e_identification_fr.c.

◆ e_identification_fr_periodic()

void e_identification_fr_periodic ( )

Definition at line 147 of file e_identification_fr.c.

References autopilot, autopilot_in_flight(), e_identification_started, and pprz_autopilot::launch.

+ Here is the call graph for this function:

◆ if()

◆ put_alt()

static int put_alt ( uint8_t buf)
static

Definition at line 64 of file e_identification_fr.c.

References E_ID_HMSL, gps, and GpsState::hmsl.

Referenced by if().

+ Here is the caller graph for this function:

◆ put_horizontal_speed()

static int put_horizontal_speed ( uint8_t buf)
static

Definition at line 74 of file e_identification_fr.c.

References E_ID_H_SPEED, and stateGetHorizontalSpeedNorm_f().

Referenced by if().

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

◆ put_lat()

static int put_lat ( uint8_t buf)
static

warning! strong dependency over GCC!

Definition at line 43 of file e_identification_fr.c.

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

Referenced by if().

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

◆ put_lat_lon_home()

static int put_lat_lon_home ( uint8_t buf)
static

Definition at line 99 of file e_identification_fr.c.

References UtmCoor_f::alt, E_ID_LAT_TO, E_ID_LON_TO, UtmCoor_f::east, LlaCoor_i::lat, LLA_BFP_OF_REAL, lla_of_utm_f(), LlaCoor_i::lon, nav_utm_east0, nav_utm_north0, nav_utm_zone0, UtmCoor_f::north, offset, waypoint_get_lla(), waypoints, point::x, point::y, and UtmCoor_f::zone.

Referenced by if().

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

◆ put_lon()

static int put_lon ( uint8_t buf)
static

Definition at line 54 of file e_identification_fr.c.

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

Referenced by if().

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

◆ put_route()

static int put_route ( uint8_t buf)
static

Definition at line 83 of file e_identification_fr.c.

References E_ID_ROUTE, and stateGetHorizontalSpeedDir_f().

Referenced by if().

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

Variable Documentation

◆ dev

struct uart_periph* dev = &(E_ID_DEV)
static

Definition at line 40 of file e_identification_fr.c.

Referenced by if().

◆ e_identification_started

bool e_identification_started = false

Definition at line 41 of file e_identification_fr.c.

Referenced by e_identification_fr_periodic().