FW land detector increase trigger time and cleanup (#8486)

This commit is contained in:
Daniel Agar
2017-12-21 12:17:32 -05:00
committed by GitHub
parent 7dab5d4380
commit ec57832a8f
6 changed files with 231 additions and 191 deletions
+4 -4
View File
@@ -120,17 +120,17 @@ protected:
/**
* @return true if UAV is in almost landed state
*/
virtual bool _get_maybe_landed_state() = 0;
virtual bool _get_maybe_landed_state() { return false; }
/**
* @return true if UAV is touching ground but not landed
*/
virtual bool _get_ground_contact_state() = 0;
virtual bool _get_ground_contact_state() { return false; }
/**
* @return true if UAV is in free-fall state.
*/
virtual bool _get_freefall_state() = 0;
virtual bool _get_freefall_state() { return false; }
/**
* @return maximum altitude that can be reached
@@ -167,7 +167,7 @@ private:
void _cycle();
void _check_params(const bool force);
void _check_params(bool force = false);
void _update_state();