mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 15:13:33 +08:00
enable ground effect zone when land detector is updated
This commit is contained in:
committed by
Roman Bapst
parent
0c24aa6149
commit
04a486f13d
@@ -1398,6 +1398,11 @@ void Ekf2::run()
|
||||
_ekf.set_gnd_effect_flag(true);
|
||||
}
|
||||
|
||||
// update ground effect flag based on land detector state
|
||||
else if (vehicle_land_detected_updated && _gnd_effect_deadzone.get() > 0.0f) {
|
||||
_ekf.set_gnd_effect_flag(vehicle_land_detected.in_ground_effect);
|
||||
}
|
||||
|
||||
lpos.dist_bottom_rate = -lpos.vz; // Distance to bottom surface (ground) change rate
|
||||
|
||||
_ekf.get_ekf_lpos_accuracy(&lpos.eph, &lpos.epv);
|
||||
|
||||
Reference in New Issue
Block a user