fix multicopter land detector: do not update parameters every cycle (#13212)

And add updateParams() call in LandDetector::_update_params().
This commit is contained in:
Mark Sauder
2019-10-18 09:25:41 +02:00
committed by Beat Küng
parent cefa7ec5dc
commit e9c9fb8239
4 changed files with 20 additions and 20 deletions
@@ -95,9 +95,9 @@ void MulticopterLandDetector::_update_topics()
_vehicle_local_position_setpoint_sub.update(&_vehicle_local_position_setpoint);
}
void MulticopterLandDetector::_update_params(const bool force)
void MulticopterLandDetector::_update_params()
{
LandDetector::_update_params(force);
LandDetector::_update_params();
_freefall_hysteresis.set_hysteresis_time_from(false, (hrt_abstime)(1e6f * _param_lndmc_ffall_ttri.get()));