improved GPS operation
This commit is contained in:
parent
a59ffe2305
commit
fdde545a97
|
|
@ -13,22 +13,20 @@ framework = arduino
|
|||
monitor_speed = 115200
|
||||
build_flags = -Wl,--gc-sections,--relax
|
||||
board_build.partitions = partitions.csv
|
||||
board_build.embed_files =
|
||||
board_build.embed_files =
|
||||
data_embed/index.html.out
|
||||
data_embed/style.css.out
|
||||
data_embed/js.js.out
|
||||
|
||||
extra_scripts =
|
||||
extra_scripts =
|
||||
pre:tools/buildscript_versioning.py
|
||||
pre:tools/compress_assets.py
|
||||
|
||||
lib_deps =
|
||||
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]
|
||||
|
|
|
|||
|
|
@ -741,7 +741,7 @@ void loop() {
|
|||
if(gps_state == true){
|
||||
gps_state = false;
|
||||
#ifdef T_BEAM_V1_0
|
||||
axp.setPowerOutPut(AXP192_LDO3, AXP202_OFF); // GPS OFF
|
||||
axp.setPowerOutPut(AXP192_LDO3, AXP202_OFF); // GPS OFF
|
||||
#endif
|
||||
writedisplaytext("((GPSOFF))","","","","","");
|
||||
next_fixed_beacon = millis() + fix_beacon_interval;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue