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

GPS system based on datalink. More...

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

Go to the source code of this file.

Functions

void gps_impl_init (void)
 GPS initialization. More...
 
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...
 

Variables

bool_t gps_available
 Is set to TRUE when a new REMOTE_GPS packet is received and parsed. More...
 

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

GPS initialization.

Definition at line 35 of file gps_datalink.c.

References GpsState::cacc, FALSE, GpsState::fix, gps, gps_available, GPS_FIX_NONE, and GpsState::gspeed.

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 
)

Variable Documentation

bool_t gps_available

Is set to TRUE when a new REMOTE_GPS packet is received and parsed.

Definition at line 32 of file gps_datalink.c.

Referenced by gps_impl_init(), parse_gps_datalink(), and sim_use_gps_pos().