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
gps_datalink.c File Reference

GPS system based on datalink. More...

#include "generated/flight_plan.h"
#include "subsystems/gps.h"
#include "subsystems/abi.h"
#include "subsystems/datalink/datalink.h"
+ Include dependency graph for gps_datalink.c:

Go to the source code of this file.

Functions

void gps_datalink_init (void)
 GPS initialization. More...
 
static void parse_gps_datalink_small (int16_t heading, uint32_t pos_xyz, uint32_t speed_xyz, uint32_t tow)
 
static void parse_gps_datalink (uint8_t numsv, int32_t ecef_x, int32_t ecef_y, int32_t ecef_z, int32_t lat, int32_t lon, int32_t alt, int32_t hmsl, int32_t ecef_xd, int32_t ecef_yd, int32_t ecef_zd, uint32_t tow, int32_t course)
 Parse the REMOTE_GPS datalink packet. More...
 
static void parse_gps_datalink_local (float enu_x, float enu_y, float enu_z, float enu_xd, float enu_yd, float enu_zd, uint32_t tow, float course)
 Parse the REMOTE_GPS_LOCAL datalink packet. More...
 
void gps_datalink_parse_REMOTE_GPS (uint8_t *buf)
 
void gps_datalink_parse_REMOTE_GPS_SMALL (uint8_t *buf)
 
void gps_datalink_parse_REMOTE_GPS_LOCAL (uint8_t *buf)
 

Variables

struct LtpDef_i ltp_def
 
struct GpsState gps_datalink
 

Detailed Description

GPS system based on datalink.

This GPS parses the datalink REMOTE_GPS packet and sets the GPS structure to the values received.

Definition in file gps_datalink.c.

Function Documentation

void gps_datalink_init ( void  )
void gps_datalink_parse_REMOTE_GPS ( uint8_t buf)

Definition at line 231 of file gps_datalink.c.

References parse_gps_datalink().

+ Here is the call graph for this function:

void gps_datalink_parse_REMOTE_GPS_LOCAL ( uint8_t buf)

Definition at line 260 of file gps_datalink.c.

References parse_gps_datalink_local().

+ Here is the call graph for this function:

void gps_datalink_parse_REMOTE_GPS_SMALL ( uint8_t buf)

Definition at line 250 of file gps_datalink.c.

References parse_gps_datalink_small().

+ Here is the call graph for this function:

Variable Documentation

struct GpsState gps_datalink