PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Public Member Functions | |
bool | Start (int rxPin, int txPin, int ppsPin=-1) |
bool | GetStatus (void) |
char * | Get () |
char * | Get (char string[], const int maxBytes=kNmeaMaxLength) |
char * | Get () |
char * | Get (char string[], const int maxBytes=kNmeaMaxLength) |
|
inherited |
Gets a NMEA string. Note that the returned string address is valid (will not be overwritten) until the next time GetStr() is called.
The returned string includes all characters from the GPS except for the \r and
(<CR><LF>) at the end.
Partial sentences may be thrown away (if a sentence is not being currently recorded).
Ignores the PGTOP type sentence.
Definition at line 57 of file gpsparser.h.
|
inherited |
Gets a NMEA string. Note that the returned string address is valid (will not be overwritten) until the next time GetStr() is called.
The returned string includes all characters from the GPS except for the \r and
(<CR><LF>) at the end.
Partial sentences may be thrown away (if a sentence is not being currently recorded).
Ignores the PGTOP type sentence.
Definition at line 57 of file gpsparser.h.
Same as Get(), but with the option of specifying a buffer to use instead of the internal buffer.
string | The buffer to use. Must be at least 85 characters long (the NMEA string length). |
maxBytes | The maximum number of bytes to record in this string. Defaults to maximum NMEA sentence length. |
Definition at line 73 of file gpsparser.h.
Same as Get(), but with the option of specifying a buffer to use instead of the internal buffer.
string | The buffer to use. Must be at least 85 characters long (the NMEA string length). |
maxBytes | The maximum number of bytes to record in this string. Defaults to maximum NMEA sentence length. |
Definition at line 73 of file gpsparser.h.
bool libpropeller::MTK3339::Start | ( | int | rxPin, |
int | txPin, | ||
int | ppsPin = -1 |
||
) |
Send configuration packets:
220 PMTK_SET_NMEA_UPDATERATE 100 (milliseconds, 10Hz) 251 PMTK_SET_NMEA_BAUDRATE 115200 (baud) 341 PMTK_API_SET_NMEA_OUTPUT GLL 0 (disabled) RMC 1 (10 Hz) VTG 0 (disabled) GGA 1 (10 Hz) GSA 5 (2 Hz) GSV 5 (2 Hz)
Requires that the previous baud be either 9600 (factory default) or 115200. Other baud rates are not supported, and will result in GetStatus() == false.
Definition at line 50 of file mtk3339.h.