Browse Source

BaroGlitch: add reset method

master
Randy Mackay 10 years ago
parent
commit
67690553c5
  1. 4
      libraries/AP_Baro/AP_Baro_Glitch.h

4
libraries/AP_Baro/AP_Baro_Glitch.h

@ -36,6 +36,10 @@ public: @@ -36,6 +36,10 @@ public:
// glitching - returns true if we are experiencing a glitch
bool glitching() const { return _flags.glitching; }
// reset - resets glitch detection to start from current baro alt
// should be called after barometer altitude is reset during arming
void reset() { _flags.initialised = false; }
// last_good_update - returns system time of the last good update
uint32_t last_good_update() const { return _last_good_update; }

Loading…
Cancel
Save