mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 09:59:01 +00:00
switch GPS back to 9600 baud, seems to work better now we only use the 2 sentences
This commit is contained in:
parent
89f7968ca2
commit
8d74c41802
@ -37,13 +37,17 @@ bool GPS::setupGPS()
|
|||||||
_serial_gps->setRxBufferSize(2048); // the default is 256
|
_serial_gps->setRxBufferSize(2048); // the default is 256
|
||||||
#endif
|
#endif
|
||||||
#ifdef TTGO_T_ECHO
|
#ifdef TTGO_T_ECHO
|
||||||
// Switch to 4800 baud, then close and reopen port
|
// Switch to 9600 baud, then close and reopen port
|
||||||
_serial_gps->write("$PCAS01,0*1C\r\n");
|
|
||||||
delay(250);
|
|
||||||
_serial_gps->end();
|
_serial_gps->end();
|
||||||
delay(250);
|
delay(250);
|
||||||
_serial_gps->begin(4800);
|
_serial_gps->begin(4800);
|
||||||
delay(250);
|
delay(250);
|
||||||
|
_serial_gps->write("$PCAS01,1*1D\r\n");
|
||||||
|
delay(250);
|
||||||
|
_serial_gps->end();
|
||||||
|
delay(250);
|
||||||
|
_serial_gps->begin(9600);
|
||||||
|
delay(250);
|
||||||
// Initialize the L76K Chip, use GPS + GLONASS
|
// Initialize the L76K Chip, use GPS + GLONASS
|
||||||
_serial_gps->write("$PCAS04,5*1C\r\n");
|
_serial_gps->write("$PCAS04,5*1C\r\n");
|
||||||
delay(250);
|
delay(250);
|
||||||
@ -53,7 +57,6 @@ bool GPS::setupGPS()
|
|||||||
// Switch to Vehicle Mode, since SoftRF enables Aviation < 2g
|
// Switch to Vehicle Mode, since SoftRF enables Aviation < 2g
|
||||||
_serial_gps->write("$PCAS11,3*1E\r\n");
|
_serial_gps->write("$PCAS11,3*1E\r\n");
|
||||||
delay(250);
|
delay(250);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef GPS_UBLOX
|
#ifdef GPS_UBLOX
|
||||||
// Set the UART port to output NMEA only
|
// Set the UART port to output NMEA only
|
||||||
|
Loading…
Reference in New Issue
Block a user