PX4 Firmware
PX4 Autopilot Software http://px4.io
gps.cpp File Reference
#include <poll.h>
#include <termios.h>
#include <lib/parameters/param.h>
#include <mathlib/mathlib.h>
#include <matrix/math.hpp>
#include <px4_platform_common/cli.h>
#include <px4_platform_common/getopt.h>
#include <px4_platform_common/module.h>
#include <uORB/PublicationQueued.hpp>
#include <uORB/Subscription.hpp>
#include <uORB/topics/gps_dump.h>
#include <uORB/topics/gps_inject_data.h>
#include "devices/src/ashtech.h"
#include "devices/src/emlid_reach.h"
#include "devices/src/mtk.h"
#include "devices/src/ubx.h"
Include dependency graph for gps.cpp:

Go to the source code of this file.

Classes

class  GPS_Sat_Info
 
class  GPS
 

Macros

#define TIMEOUT_5HZ   500
 
#define RATE_MEASUREMENT_PERIOD   5000000
 

Enumerations

enum  gps_driver_mode_t {
  GPS_DRIVER_MODE_NONE = 0, GPS_DRIVER_MODE_UBX, GPS_DRIVER_MODE_MTK, GPS_DRIVER_MODE_ASHTECH,
  GPS_DRIVER_MODE_EMLIDREACH
}
 

Functions

__EXPORT int gps_main (int argc, char *argv[])
 

Variables

static constexpr int TASK_STACK_SIZE = 1620
 

Macro Definition Documentation

◆ RATE_MEASUREMENT_PERIOD

#define RATE_MEASUREMENT_PERIOD   5000000

Definition at line 71 of file gps.cpp.

Referenced by GPS::run().

◆ TIMEOUT_5HZ

#define TIMEOUT_5HZ   500

Definition at line 70 of file gps.cpp.

Referenced by GPS::run().

Enumeration Type Documentation

◆ gps_driver_mode_t

Enumerator
GPS_DRIVER_MODE_NONE 
GPS_DRIVER_MODE_UBX 
GPS_DRIVER_MODE_MTK 
GPS_DRIVER_MODE_ASHTECH 
GPS_DRIVER_MODE_EMLIDREACH 

Definition at line 73 of file gps.cpp.

Function Documentation

◆ gps_main()

int gps_main ( int  argc,
char *  argv[] 
)

Definition at line 1234 of file gps.cpp.

References main().

Here is the call graph for this function:

Variable Documentation

◆ TASK_STACK_SIZE

constexpr int TASK_STACK_SIZE = 1620
static

Definition at line 86 of file gps.cpp.

Referenced by GPS::task_spawn().