Implementation of smart positioning #934

Initial check in for https://github.com/meshtastic/Meshtastic-device/issues/934
This commit is contained in:
Jm Casler
2021-11-26 19:12:00 -08:00
parent f6fde55363
commit 3ec508169a
3 changed files with 38 additions and 0 deletions

View File

@@ -13,6 +13,10 @@ class PositionPlugin : public ProtobufPlugin<Position>, private concurrency::OST
/// We limit our GPS broadcasts to a max rate
uint32_t lastGpsSend = 0;
// Store the latest good lat / long
uint32_t lastGpsLatitude = 0;
uint32_t lastGpsLongitude = 0;
/// We force a rebroadcast if the radio settings change
uint32_t currentGeneration = 0;