battery: use mechanism to keep an up to date armed state

This commit is contained in:
Matthias Grob
2022-04-04 10:02:55 +02:00
parent 3f6ab5ea19
commit 13c3eae6d0
2 changed files with 9 additions and 4 deletions
+1
View File
@@ -170,4 +170,5 @@ private:
float _scale{1.f};
uint8_t _warning{battery_status_s::BATTERY_WARNING_NONE};
hrt_abstime _last_timestamp{0};
bool _armed{false};
};