GPS guard: gps guard on/off, saved in the GPS prefs

This commit is contained in:
Olexandr Tyshchenko committed 2026-11-09 23:50:48 +02:00
1 parent 6291f9156a
commit 3da13dd91a
6 files changed
+45

No files matched your search

+3
View File
@@ -24,6 +24,9 @@ public:
// Saved fence radius for the guard; false = not set, use the build default.
virtual bool getGuardFence(uint32_t& metres) const { return false; }
virtual void setGuardFence(uint32_t metres) { }
// Saved on/off state of the guard; false = not set, guard on.
virtual bool getGuardEnabled(bool& enabled) const { return false; }
virtual void setGuardEnabled(bool enabled) { }
bool setGpsEnabled(SensorManager& sensors, bool enabled);
void applyGuardReference(SensorManager& sensors) const;