land detector move hysteresis constants into FW and MC

This commit is contained in:
Daniel Agar
2017-08-31 22:49:44 -04:00
parent fd8a5644e8
commit 90819b2852
6 changed files with 25 additions and 18 deletions
@@ -65,10 +65,6 @@ LandDetector::LandDetector() :
_takeoff_time{0},
_work{}
{
// Use Trigger time when transitioning from in-air (false) to landed (true) / ground contact (true).
_landed_hysteresis.set_hysteresis_time_from(false, LAND_DETECTOR_TRIGGER_TIME_US);
_maybe_landed_hysteresis.set_hysteresis_time_from(false, MAYBE_LAND_DETECTOR_TRIGGER_TIME_US);
_ground_contact_hysteresis.set_hysteresis_time_from(false, GROUND_CONTACT_TRIGGER_TIME_US);
}
LandDetector::~LandDetector()