20 #include "../config/gps.h"
21 #include "../system_calls.h"
22 #include "../drivers/serial.h"
27 #define GPS_DEGREES_DIVIDER 10000000L
28 #define SBAS_MODE_MAX SBAS_GAGAN
38 #define GPS_BAUDRATE_MAX GPS_BAUDRATE_9600
52 #define GPS_MESSAGE_STATE_ENTRY_COUNT (GPS_MESSAGE_STATE_MAX + 1)
67 #define GPS_PACKET_LOG_ENTRY_COUNT 21 // To make this useful we should log as many packets as we can fit characters a single line of a OLED display.
97 #define GPS_DBHZ_MIN 0
98 #define GPS_DBHZ_MAX 55
gpsData_t gpsData
Definition: gps.h:73
uint32_t timeouts
Definition: gps.h:58
uint8_t GPS_svinfo_quality[16]
Definition: gps.h:87
uint32_t GPS_garbageByteCount
Definition: gps.h:90
gpsBaudRate_e
Definition: gps.h:30
serialPort_t * gpsPort
Definition: gps.h:92
uint16_t GPS_hdop
Definition: gps.h:77
void gps_enable_passthrough(struct gps *self, struct serialPort_s *gpsPassthroughPort)
Definition: gps.c:1021
struct gpsData_s gpsData_t
struct gpsCoordinateDDDMMmmmm_s gpsCoordinateDDDMMmmmm_t
uint32_t GPS_svInfoReceivedCount
Definition: gps.h:80
uint32_t GPS_packetCount
Definition: gps.h:79
uint8_t GPS_svinfo_cno[16]
Definition: gps.h:88
sys_millis_t state_ts
Definition: gps.h:63
const struct system_calls * system
Definition: gps.h:93
uint32_t lastLastMessage
Definition: gps.h:60
const struct config * config
Definition: gps.h:94
int32_t GPS_coord[2]
Definition: gps.h:74
struct system_config system
Definition: config.h:99
int16_t dddmm
Definition: gps.h:40
int32_t sys_millis_t
Definition: system_calls.h:6
gpsMessageState_e
Definition: gps.h:45
uint32_t lastMessage
Definition: gps.h:59
uint16_t GPS_altitude
Definition: gps.h:81
uint8_t GPS_numSat
Definition: gps.h:76
uint32_t errors
Definition: gps.h:57
int16_t mmmm
Definition: gps.h:41
uint8_t GPS_update
Definition: gps.h:78
gpsMessageState_e messageState
Definition: gps.h:64
uint8_t state
Definition: gps.h:55
void gps_update(struct gps *self)
Definition: gps.c:325
bool gps_process_char(struct gps *self, uint8_t c)
uint16_t GPS_speed
Definition: gps.h:82
uint8_t GPS_svinfo_chn[16]
Definition: gps.h:85
Definition: system_calls.h:200
int gps_init(struct gps *self, const struct system_calls *system, const struct config *config)
Definition: gps.c:169
uint32_t state_position
Definition: gps.h:62
char * gpsPacketLogChar
Definition: gps.h:71
uint8_t baudrateIndex
Definition: gps.h:56
uint16_t GPS_ground_course
Definition: gps.h:83
char gpsPacketLog[GPS_PACKET_LOG_ENTRY_COUNT]
Definition: gps.h:70
uint8_t GPS_numCh
Definition: gps.h:84
uint8_t GPS_svinfo_svid[16]
Definition: gps.h:86
#define GPS_PACKET_LOG_ENTRY_COUNT
Definition: gps.h:67