Skip to content

Commit

Permalink
Finally - new sexy ultra low power/low latency GPS code is in for TBEAM
Browse files Browse the repository at this point in the history
  • Loading branch information
geeksville committed Mar 15, 2020
1 parent 3c1357b commit 9c971d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions docs/software/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

Items to complete soon (next couple of alpha releases).

* button is not waking from light sleep on the TTGOs
* turn on gps https://github.com/sparkfun/SparkFun_Ublox_Arduino_Library/blob/master/examples/Example18_PowerSaveMode/Example18_PowerSaveMode.ino
* switch gps to 38400 baud https://github.com/sparkfun/SparkFun_Ublox_Arduino_Library/blob/master/examples/Example11_ResetModule/Example2_FactoryDefaultsviaSerial/Example2_FactoryDefaultsviaSerial.ino
* Use Neo-M8M API to put it in sleep mode

* lower wait_bluetooth_secs to 30 seconds once we have the GPS power on (but GPS in sleep mode) across light sleep. For the time
being I have it set at 2 minutes to ensure enough time for a GPS lock from scratch.

Expand Down Expand Up @@ -202,3 +197,7 @@ until the phone pulls those packets. Ever so often power on bluetooth just so w
* link to the kanban page
* add a getting started page
* finish mesh alg reeval
* ublox gps parsing seems a little buggy (we shouldn't be sending out read solution commands, the device is already broadcasting them)
* turn on gps https://github.com/sparkfun/SparkFun_Ublox_Arduino_Library/blob/master/examples/Example18_PowerSaveMode/Example18_PowerSaveMode.ino
* switch gps to 38400 baud https://github.com/sparkfun/SparkFun_Ublox_Arduino_Library/blob/master/examples/Example11_ResetModule/Example2_FactoryDefaultsviaSerial/Example2_FactoryDefaultsviaSerial.ino
* Use Neo-M8M API to put it in sleep mode
2 changes: 1 addition & 1 deletion src/GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ void GPS::doTask()
#endif

// Once we have sent a location once we only poll the GPS rarely, otherwise check back every 1s until we have something over the serial
setPeriod(hasValidLocation && !wantNewLocation ? 30 * 1000 : 1000);
setPeriod(hasValidLocation && !wantNewLocation ? 30 * 1000 : 10 * 1000);
}

void GPS::startLock()
Expand Down

0 comments on commit 9c971d3

Please sign in to comment.