GPS NEMA String parser library. Only supports SkyTraq Venus chip at this time.
Dependents: MTDOT-EVB-LinkCheck-AL MTDOT-BOX-EVB-Factory-Firmware-LIB-108 TelitSensorToCloud mDot_sensor_to_cloud ... more
Diff: GPSPARSER.cpp
- Revision:
- 1:58c50bb3c60c
- Parent:
- 0:d2169fecf3fb
- Child:
- 2:fbc098f1e7c0
diff -r d2169fecf3fb -r 58c50bb3c60c GPSPARSER.cpp --- a/GPSPARSER.cpp Thu Sep 10 20:03:21 2015 +0000 +++ b/GPSPARSER.cpp Wed Sep 16 14:01:08 2015 +0000 @@ -2,7 +2,7 @@ * @file NemaParser.cpp * @brief NEMA String to Packet Parser - NEMA strings to compact packet data * @author Tim Barr - * @version 1.0 + * @version 1.01 * @see http://www.kh-gps.de/nmea.faq * @see http://www.catb.org/gpsd/NMEA.html * @@ -20,6 +20,8 @@ * See the License for the specific language governing permissions and * limitations under the License. * + * 09/16/15 TAB V1.01 Changed report rate of GGA and GSA NEMA sentences + * * TODO: Add speed, compass direction, error (DOP) data. Make init more generic */ @@ -71,9 +73,9 @@ // this code is specific to the Skytraq Venus GPS chip. This code could be re-written to detect another type of // GPS device. Maybe read serial port for a specific time and detect $GP from NEMA string - // Sets Skytraq Venus GPS to output GGA,GSA every 240 seconds, GSV every 30 seconds, and RMC every second, no ZDA,GLL,VTG + // Sets Skytraq Venus GPS to output GGA,GSA,GSV every 30 seconds, and RMC every second, no ZDA,GLL,VTG // setup string for GPS GGA GSA GSV GLL RMC VTG ZDA cksum - char init_gps[16] = {0xA0,0xA1,0x00,0x09,0x08,0xF0,0xF0,0x1E,0x00,0x01,0x00,0x00,0x00,0x17,0x0D,0x0A}; + char init_gps[16] = {0xA0,0xA1,0x00,0x09,0x08,0x1E,0x1E,0x1E,0x00,0x01,0x00,0x00,0x00,0x17,0x0D,0x0A}; char chk_char; uint8_t ret = 0;