mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 19:43:34 +08:00
MulticopterLandDetector: refactor maybe_landed condition
removing all early returns
This commit is contained in:
committed by
Daniel Agar
parent
b7d2868de9
commit
c85d4fdb1c
@@ -119,7 +119,7 @@ private:
|
||||
|
||||
uint8_t _takeoff_state{takeoff_status_s::TAKEOFF_STATE_DISARMED};
|
||||
|
||||
hrt_abstime _min_thrust_start{0}; ///< timestamp when minimum trust was applied first
|
||||
systemlib::Hysteresis _minimum_thrust_8s_hysteresis{false};
|
||||
|
||||
bool _in_descend{false}; ///< vehicle is commanded to desend
|
||||
bool _horizontal_movement{false}; ///< vehicle is moving horizontally
|
||||
|
||||
Reference in New Issue
Block a user