STIMA
3
platformio
stima_v3
stimawifi
src
gps_thread.h
1
#include "ozgps.h"
2
#include <cmath>
3
4
#ifndef GPS_THREAD_H_
5
#define GPS_THREAD_H_
6
7
/*
8
NEO-6 - Data Sheet:
9
Serial Port 1 Output 9600 Baud, 8 bits, no parity bit, 1 stop bit
10
Configured to transmit both NMEA and UBX protocols, but only following NMEA and no
11
UBX messages have been activated at start-up:
12
GGA, GLL, GSA, GSV, RMC, VTG, TXT
13
*/
14
15
struct
gps_data_t
{
16
int
id;
17
frtosLogging* logger;
18
gpsStatus_t
* status;
19
georef_t
* georef;
20
};
21
22
using namespace
cpp_freertos;
23
24
class
gpsThread
:
public
Thread {
25
26
public
:
33
gpsThread
(
gps_data_t
* gps_data);
34
~
gpsThread
();
35
virtual
void
Cleanup();
36
37
protected
:
38
virtual
void
Run();
39
40
private
:
41
void
GPS_SerialInit();
42
void
doSerialNmea();
43
gps_data_t
* data;
44
45
};
46
47
#endif
gpsThread
Definition:
gps_thread.h:24
georef_t
Definition:
typedef.h:58
gpsStatus_t
Definition:
typedef.h:182
gps_data_t
Definition:
gps_thread.h:15
Generated by
1.9.1