mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 11:53:34 +08:00
fix multicopter land detector: do not update parameters every cycle (#13212)
And add updateParams() call in LandDetector::_update_params().
This commit is contained in:
@@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user