Paparazzi UAS  v5.12_stable-4-g9b43e9b
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...
 
void gps_datalink_parse_REMOTE_GPS (void)
 
void gps_datalink_parse_REMOTE_GPS_SMALL (void)
 

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 ( void  )

Definition at line 177 of file gps_datalink.c.

References dl_buffer, and parse_gps_datalink().

+ Here is the call graph for this function:

void gps_datalink_parse_REMOTE_GPS_SMALL ( void  )

Definition at line 196 of file gps_datalink.c.

References dl_buffer, and parse_gps_datalink_small().

+ Here is the call graph for this function:

Variable Documentation

struct GpsState gps_datalink

Definition at line 38 of file gps_datalink.c.

Referenced by gps_datalink_init(), parse_gps_datalink(), and parse_gps_datalink_small().

struct LtpDef_i ltp_def

Definition at line 36 of file gps_datalink.c.

Referenced by gps_datalink_init(), parse_gps_datalink(), and parse_gps_datalink_small().