mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 02:23:34 +08:00
landdetector: delete or for ground_contact detection
This commit is contained in:
committed by
Lorenz Meier
parent
2890af7305
commit
f75dd37326
@@ -195,7 +195,7 @@ void LandDetector::_update_state()
|
|||||||
_freefall_hysteresis.set_state_and_update(_get_freefall_state());
|
_freefall_hysteresis.set_state_and_update(_get_freefall_state());
|
||||||
_landed_hysteresis.set_state_and_update(_get_landed_state());
|
_landed_hysteresis.set_state_and_update(_get_landed_state());
|
||||||
_maybe_landed_hysteresis.set_state_and_update(_get_maybe_landed_state());
|
_maybe_landed_hysteresis.set_state_and_update(_get_maybe_landed_state());
|
||||||
_ground_contact_hysteresis.set_state_and_update(_landed_hysteresis.get_state() || _get_ground_contact_state());
|
_ground_contact_hysteresis.set_state_and_update(_get_ground_contact_state());
|
||||||
|
|
||||||
if (_freefall_hysteresis.get_state()) {
|
if (_freefall_hysteresis.get_state()) {
|
||||||
_state = LandDetectionState::FREEFALL;
|
_state = LandDetectionState::FREEFALL;
|
||||||
|
|||||||
Reference in New Issue
Block a user