improved GPS operation

This commit is contained in:
Rysiek Labus 2021-04-13 15:52:07 +02:00
parent a59ffe2305
commit fdde545a97
3 changed files with 10 additions and 12 deletions

View File

@ -17,18 +17,16 @@ board_build.embed_files =
data_embed/index.html.out
data_embed/style.css.out
data_embed/js.js.out
extra_scripts =
pre:tools/buildscript_versioning.py
pre:tools/compress_assets.py
lib_deps =
RadioHead
TinyGPSPlus
Adafruit SSD1306
Adafruit GFX Library
Adafruit Unified Sensor
https://github.com/SQ9MDD/AXP202X_Library.git # modified AXP Library
https://github.com/SQ9MDD/AXP202X_Library.git
SparkFun u-blox Arduino Library
[env:ttgo-t-beam-v1.0]

View File

@ -25,11 +25,11 @@ void taskGPS(void *parameter) {
if(myGPS.begin(gpsSerial)){
myGPS.setUART1Output(COM_TYPE_NMEA); //Set the UART port to output NMEA only
//myGPS.saveConfiguration(); //Save the current settings to flash and BBR
myGPS.disableNMEAMessage(UBX_NMEA_GLL, COM_PORT_UART1);
myGPS.disableNMEAMessage(UBX_NMEA_GSA, COM_PORT_UART1);
myGPS.disableNMEAMessage(UBX_NMEA_GSV, COM_PORT_UART1);
myGPS.disableNMEAMessage(UBX_NMEA_VTG, COM_PORT_UART1);
myGPS.disableNMEAMessage(UBX_NMEA_RMC, COM_PORT_UART1);
myGPS.enableNMEAMessage(UBX_NMEA_GLL, COM_PORT_UART1);
myGPS.enableNMEAMessage(UBX_NMEA_GSA, COM_PORT_UART1);
myGPS.enableNMEAMessage(UBX_NMEA_GSV, COM_PORT_UART1);
myGPS.enableNMEAMessage(UBX_NMEA_VTG, COM_PORT_UART1);
myGPS.enableNMEAMessage(UBX_NMEA_RMC, COM_PORT_UART1);
myGPS.enableNMEAMessage(UBX_NMEA_GGA, COM_PORT_UART1);
//myGPS.saveConfiguration(); //Save the current settings to flash and BBR
delay(1000);