kizniche / ttgo-tbeam-ttn-tracker

TTGO T-Beam Tracker for TTN Mapper and TTN Tracker using US (915 MHz) and EU (868 MHz) frequencies
https://kylegabriel.com/projects/2019/04/lorawan-tracker-and-mapper.html
GNU General Public License v3.0
262 stars 139 forks source link

Sat Lock. Wait for x sats #21

Closed dafyddhirst closed 3 years ago

dafyddhirst commented 3 years ago

Is there any possible way once it has lock to wait for x satellites to improve the lock accuracy? Thanks

kizniche commented 3 years ago

You should be able to edit this line:

https://github.com/kizniche/ttgo-tbeam-ttn-tracker/blob/f4b7577d050a76365159d5ae9216cae2d62ebc51/main/main.ino#L280

to this:

    if (3 < gps_sats() && 0 < gps_hdop() && gps_hdop() < 50 && gps_latitude() != 0 && gps_longitude() != 0) {

Changing 3 < gps_sats() to whatever number of satellites you want the lock to be greater than in order to send.