DovesLapTimer 4.0.0
GPS-based lap timing Arduino library — go-karts to race cars
Loading...
Searching...
No Matches
gps_config.h
Go to the documentation of this file.
1#ifndef _DOVES_GPS_CONFIG_H
2#define _DOVES_GPS_CONFIG_H
3 // ublox commands
4 // 16
5 const PROGMEM uint8_t GPGLLOff[] = {0xB5, 0x62, 0x06, 0x01, 0x08, 0x00, 0xF0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2A};
6 const PROGMEM uint8_t GPVTGOff[] = {0xB5, 0x62, 0x06, 0x01, 0x08, 0x00, 0xF0, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x46};
7 const PROGMEM uint8_t GPGSVOff[] = {0xB5, 0x62, 0x06, 0x01, 0x08, 0x00, 0xF0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x38};
8 const PROGMEM uint8_t GPGSAOff[] = {0xB5, 0x62, 0x06, 0x01, 0x08, 0x00, 0xF0, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x31};
9 const PROGMEM uint8_t GPGGAOff[] = {0xB5, 0x62, 0x06, 0x01, 0x08, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x23};
10 // every 5 or 10 packets, if not sent defaults to every packet
11 const PROGMEM uint8_t GPGGAOn5[] = {0xB5, 0x62, 0x06, 0x01, 0x08, 0x00, 0xF0, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x04, 0x3C};
12 const PROGMEM uint8_t GPGGAOn10[]= {0xB5, 0x62, 0x06, 0x01, 0x08, 0x00, 0xF0, 0x00, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x09, 0x55};
13
14 const PROGMEM uint8_t BalancedPower[] = {0xB5, 0x62, 0x06, 0x86, 0x08, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x95, 0x61};
15 const PROGMEM uint8_t FullPower[] = {0xB5, 0x62, 0x06, 0x86, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x94, 0x5A};
16 // 14
17 // default 1hz on sam-m8q
18 const PROGMEM uint8_t Navrate5hz[] = {0xB5, 0x62, 0x06, 0x08, 0x06, 0x00, 0xC8, 0x00, 0x01, 0x00, 0x01, 0x00, 0xDE, 0x6A};
19 const PROGMEM uint8_t Navrate10hz[] = {0xB5, 0x62, 0x06, 0x08, 0x06, 0x00, 0x64, 0x00, 0x01, 0x00, 0x01, 0x00, 0x7A, 0x12};
20 // const PROGMEM uint8_t Navrate16hz[] = {};
21 // ONLY works with ENABLE_GPS_ONLY
22 const PROGMEM uint8_t Navrate18hz[] = {0xB5, 0x62, 0x06, 0x08, 0x06, 0x00, 0x38, 0x00, 0x01, 0x00, 0x01, 0x00, 0x4E, 0x0A};
23 const PROGMEM uint8_t Navrate20hz[] = {0xB5, 0x62, 0x06, 0x08, 0x06, 0x00, 0x32, 0x00, 0x01, 0x00, 0x01, 0x00, 0x48, 0xE6};
24 const PROGMEM uint8_t Navrate25hz[] = {0xB5, 0x62, 0x06, 0x08, 0x06, 0x00, 0x28, 0x00, 0x01, 0x00, 0x01, 0x00, 0x3E, 0xAA};
25
26 //only send after enabling gps-only reception
27 const PROGMEM uint8_t ENABLE_SBAS[] = {0xB5, 0x62, 0x06, 0x16, 0x08, 0x00, 0x01, 0x03, 0x03, 0x00, 0x89, 0xA3, 0x07, 0x00};
28 // 44
29 const PROGMEM uint8_t NavTypeAutomobile[] = {
30 0xB5, 0x62, 0x06, 0x24, 0x24, 0x00, 0xFF, 0xFF, 0x04, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10, 0x27,
31 0x00, 0x00, 0x05, 0x00, 0xFA, 0x00, 0xFA, 0x00, 0x64, 0x00, 0x5E, 0x01, 0x00, 0x3C, 0x00, 0x00,
32 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0xC4
33 };
34 // 28
35 const PROGMEM uint8_t NMEAVersion23[] = {
36 0xB5, 0x62, 0x06, 0x17, 0x14, 0x00, 0x00, 0x23, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
37 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x57, 0x1D
38 };
39 const PROGMEM uint8_t uart115200[] = {
40 0xB5, 0x62, 0x06, 0x00, 0x14, 0x00, 0x01, 0x00, 0x00, 0x00, 0xD0, 0x08, 0x00, 0x00, 0x00, 0xC2,
41 0x01, 0x00, 0x07, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x7E
42 };
43 const PROGMEM uint8_t uart115200NmeaOnly[] = {
44 0xB5, 0x62, 0x06, 0x00, 0x14, 0x00, 0x01, 0x00, 0x00, 0x00, 0xD0, 0x08, 0x00, 0x00, 0x00, 0xC2,
45 0x01, 0x00, 0x07, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xBF, 0x78
46 };
47 const PROGMEM uint8_t uart19200[] = {
48 0xB5, 0x62, 0x06, 0x00, 0x14, 0x00, 0x01, 0x00, 0x00, 0x00, 0xD0, 0x08, 0x00, 0x00, 0x00, 0x4B,
49 0x00, 0x00, 0x07, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x57
50 };
51 const PROGMEM uint8_t uart19200nmeaOnly[] = {
52 0xB5, 0x62, 0x06, 0x00, 0x14, 0x00, 0x01, 0x00, 0x00, 0x00, 0xD0, 0x08, 0x00, 0x00, 0x00, 0x4B,
53 0x00, 0x00, 0x07, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x51
54 };
55 // 68
56 const PROGMEM uint8_t ENABLE_GPS_SBAS_GAL[] = {
57 0xB5, 0x62, 0x06, 0x3E, 0x3C, 0x00, 0x00, 0x00, 0x20, 0x07, 0x00, 0x08, 0x10, 0x00, 0x01, 0x00,
58 0x01, 0x01, 0x01, 0x01, 0x03, 0x00, 0x01, 0x00, 0x01, 0x01, 0x02, 0x04, 0x08, 0x00, 0x01, 0x00,
59 0x01, 0x01, 0x03, 0x08, 0x10, 0x00, 0x00, 0x00, 0x01, 0x01, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00,
60 0x01, 0x01, 0x05, 0x00, 0x03, 0x00, 0x00, 0x00, 0x01, 0x01, 0x06, 0x08, 0x0E, 0x00, 0x00, 0x00,
61 0x01, 0x01, 0x2E, 0x9D
62 };
63 const PROGMEM uint8_t ENABLE_GPS_ONLY[] = {
64 0xB5, 0x62, 0x06, 0x3E, 0x3C, 0x00, 0x00, 0x00, 0x20, 0x07, 0x00, 0x08, 0x10, 0x00, 0x01, 0x00,
65 0x01, 0x01, 0x01, 0x01, 0x03, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02, 0x04, 0x08, 0x00, 0x00, 0x00,
66 0x01, 0x01, 0x03, 0x08, 0x10, 0x00, 0x00, 0x00, 0x01, 0x01, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00,
67 0x01, 0x01, 0x05, 0x00, 0x03, 0x00, 0x00, 0x00, 0x01, 0x01, 0x06, 0x08, 0x0E, 0x00, 0x00, 0x00,
68 0x01, 0x01, 0x2C, 0x4D
69 };
70 const PROGMEM uint8_t ENABLE_GPS_GLONASS[] = {
71 0xB5, 0x62, 0x06, 0x3E, 0x3C, 0x00, 0x00, 0x00, 0x20, 0x07, 0x00, 0x08, 0x10, 0x00, 0x01, 0x00,
72 0x01, 0x01, 0x01, 0x01, 0x03, 0x00, 0x01, 0x00, 0x01, 0x01, 0x02, 0x04, 0x08, 0x00, 0x00, 0x00,
73 0x01, 0x01, 0x03, 0x08, 0x10, 0x00, 0x00, 0x00, 0x01, 0x01, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00,
74 0x01, 0x01, 0x05, 0x00, 0x03, 0x00, 0x01, 0x00, 0x01, 0x01, 0x06, 0x08, 0x0E, 0x00, 0x01, 0x00,
75 0x01, 0x01, 0x2F, 0x89
76 };
77 // 60
78 // const PROGMEM uint8_t ENABLE_GPS_ONLY_M10[] = {
79 // 0xB5, 0x62, 0x06, 0x3E, 0x34, 0x00, 0x00, 0x00, 0x31, 0x06, 0x00, 0x08, 0x10, 0x00, 0x01, 0x00,
80 // 0x01, 0x01, 0x01, 0x03, 0x03, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02, 0x08, 0x0C, 0x00, 0x00, 0x00,
81 // 0x01, 0x01, 0x03, 0x06, 0x0E, 0x00, 0x00, 0x00, 0x04, 0x01, 0x05, 0x03, 0x04, 0x00, 0x00, 0x00,
82 // 0x04, 0x01, 0x06, 0x08, 0x0C, 0x00, 0x00, 0x00, 0x01, 0x01, 0x34, 0x46
83 // };
84 const PROGMEM uint8_t ENABLE_GPS_ONLY_M10[] = {
85 0xB5, 0x62, 0x06, 0x3E, 0x34, 0x00, 0x00, 0x00, 0x31, 0x06, 0x00, 0x08, 0x10, 0x00, 0x01, 0x00,
86 0x01, 0x01, 0x01, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x08, 0x0C, 0x00, 0x00, 0x00,
87 0x00, 0x01, 0x03, 0x06, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x01, 0x05, 0x03, 0x04, 0x00, 0x00, 0x00,
88 0x00, 0x01, 0x06, 0x08, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x01, 0x29, 0x98
89 };
90#endif
const uint8_t Navrate5hz[]
Definition gps_config.h:18
const uint8_t ENABLE_GPS_GLONASS[]
Definition gps_config.h:70
const uint8_t uart115200NmeaOnly[]
Definition gps_config.h:43
const uint8_t ENABLE_GPS_ONLY[]
Definition gps_config.h:63
const uint8_t Navrate10hz[]
Definition gps_config.h:19
const uint8_t Navrate25hz[]
Definition gps_config.h:24
const uint8_t GPGGAOn10[]
Definition gps_config.h:12
const uint8_t Navrate18hz[]
Definition gps_config.h:22
const uint8_t BalancedPower[]
Definition gps_config.h:14
const uint8_t FullPower[]
Definition gps_config.h:15
const uint8_t uart19200[]
Definition gps_config.h:47
const uint8_t Navrate20hz[]
Definition gps_config.h:23
const uint8_t ENABLE_SBAS[]
Definition gps_config.h:27
const uint8_t GPVTGOff[]
Definition gps_config.h:6
const uint8_t GPGGAOff[]
Definition gps_config.h:9
const uint8_t NMEAVersion23[]
Definition gps_config.h:35
const uint8_t ENABLE_GPS_SBAS_GAL[]
Definition gps_config.h:56
const uint8_t GPGGAOn5[]
Definition gps_config.h:11
const uint8_t uart115200[]
Definition gps_config.h:39
const uint8_t ENABLE_GPS_ONLY_M10[]
Definition gps_config.h:84
const uint8_t GPGLLOff[]
Definition gps_config.h:5
const uint8_t GPGSVOff[]
Definition gps_config.h:7
const uint8_t GPGSAOff[]
Definition gps_config.h:8
const uint8_t uart19200nmeaOnly[]
Definition gps_config.h:51
const uint8_t NavTypeAutomobile[]
Definition gps_config.h:29