dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
GPS.c File Reference

GPS module, handles UBX and NMEA streams from GPS. More...

#include "openpilot.h"
#include "GPS.h"
#include "gpsposition.h"
#include "airspeedactual.h"
#include "homelocation.h"
#include "gpstime.h"
#include "gpssatellites.h"
#include "gpsvelocity.h"
#include "modulesettings.h"
#include "pios_thread.h"
#include "pios_modules.h"
#include "NMEA.h"
#include "UBX.h"
#include "ubx_cfg.h"
#include <pios_hal.h>

Go to the source code of this file.

Macros

#define GPS_TIMEOUT_MS   750
 
#define GPS_COM_TIMEOUT_MS   100
 
#define STACK_SIZE_BYTES   850
 
#define TASK_PRIORITY   PIOS_THREAD_PRIO_LOW
 

Functions

static void gpsTask (void *parameters)
 
static void updateSettings ()
 
int32_t GPSStart (void)
 
int32_t GPSInitialize (void)
 
 MODULE_INITCALL (GPSInitialize, GPSStart)
 
static void gpsConfigure (uint8_t gpsProtocol)
 

Variables

static uintptr_t gpsPort
 
static bool module_enabled = false
 
static struct pios_thread * gpsTaskHandle
 
static char * gps_rx_buffer
 
static struct GPS_RX_STATS gpsRxStats
 

Detailed Description

GPS module, handles UBX and NMEA streams from GPS.

Author
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
Tau Labs, http://taulabs.org, Copyright (C) 2013-2014
dRonin, http://dRonin.org/, Copyright (C) 2016
See Also
The GNU Public License (GPL) Version 3

Definition in file GPS.c.