GPSconfig.h
 1  // SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
 2  //
 3  // SPDX-License-Identifier: MIT
 4  
 5  /* EXAMPLE
 6  $PSRF103,<msg>,<mode>,<rate>,<cksumEnable>*CKSUM<CR><LF>
 7  <msg> 00=GGA,01=GLL,02=GSA,03=GSV,04=RMC,05=VTG
 8  <mode> 00=SetRate,01=Query
 9  <rate> Output every <rate>seconds, off=00,max=255
10  <cksumEnable> 00=disable Checksum,01=Enable checksum for specified message
11  Note: checksum is required
12  Example 1: Query the GGA message with checksum enabled
13  $PSRF103,00,01,00,01*25
14  Example 2: Enable VTG message for a 1Hz constant output with checksum enabled
15  $PSRF103,05,00,01,01*20
16  Example 3: Disable VTG message
17  $PSRF103,05,00,00,01*21
18  */
19  
20  #define SERIAL_SET   "$PSRF100,01,4800,08,01,00*0E\r\n"
21  
22  // GGA-Global Positioning System Fixed Data, message 103,00
23  
24  #define GGA_ON   "$PSRF103,00,00,01,01*25\r\n"
25  #define GGA_OFF  "$PSRF103,00,00,00,01*24\r\n"
26  
27  // GLL-Geographic Position-Latitude/Longitude, message 103,01
28  
29  #define GLL_ON   "$PSRF103,01,00,01,01*26\r\n"
30  #define GLL_OFF  "$PSRF103,01,00,00,01*27\r\n"
31  
32  // GSA-GNSS DOP and Active Satellites, message 103,02
33  
34  #define GSA_ON   "$PSRF103,02,00,01,01*27\r\n"
35  #define GSA_OFF  "$PSRF103,02,00,00,01*26\r\n"
36  
37  // GSV-GNSS Satellites in View, message 103,03
38  
39  #define GSV_ON   "$PSRF103,03,00,01,01*26\r\n"
40  #define GSV_OFF  "$PSRF103,03,00,00,01*27\r\n"
41  
42  // RMC-Recommended Minimum Specific GNSS Data, message 103,04
43  
44  #define RMC_ON   "$PSRF103,04,00,01,01*21\r\n"
45  #define RMC_OFF  "$PSRF103,04,00,00,01*20\r\n"
46  
47  // VTG-Course Over Ground and Ground Speed, message 103,05
48  
49  #define VTG_ON   "$PSRF103,05,00,01,01*20\r\n"
50  #define VTG_OFF  "$PSRF103,05,00,00,01*21\r\n"
51  
52  // Switch Development Data Messages On/Off, message 105
53  #define LOG_DDM 1
54  #define DDM_ON   "$PSRF105,01*3E\r\n"
55  #define DDM_OFF  "$PSRF105,00*3F\r\n"
56  
57  #define USE_WAAS   0     // useful in US, but slower fix
58  #define WAAS_ON    "$PSRF151,01*3F\r\n"       // the command for turning on WAAS
59  #define WAAS_OFF   "$PSRF151,00*3E\r\n"       // the command for turning off WAAS