mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 11:13:34 +08:00
added ground effect reporting to land detector
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -76,6 +76,7 @@ protected:
|
||||
bool _get_ground_contact_state() override;
|
||||
bool _get_maybe_landed_state() override;
|
||||
bool _get_freefall_state() override;
|
||||
bool _get_ground_effect_state() override;
|
||||
|
||||
float _get_max_altitude() override;
|
||||
private:
|
||||
@@ -140,6 +141,9 @@ private:
|
||||
hrt_abstime _min_trust_start{0}; ///< timestamp when minimum trust was applied first
|
||||
hrt_abstime _landed_time{0};
|
||||
|
||||
bool _in_descend{false}; ///< vehicle is desending
|
||||
bool _horizontalMovement{false}; ///< vehicle is moving horizontally
|
||||
|
||||
/* get control mode dependent pilot throttle threshold with which we should quit landed state and take off */
|
||||
float _get_takeoff_throttle();
|
||||
bool _has_altitude_lock();
|
||||
|
||||
Reference in New Issue
Block a user