mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 18:40:36 +08:00
Fix landing gear processing
This commit is contained in:
@@ -154,7 +154,7 @@ MulticopterRateControl::Run()
|
||||
|
||||
if (_landing_gear_sub.copy(&landing_gear)) {
|
||||
if (landing_gear.landing_gear != landing_gear_s::GEAR_KEEP) {
|
||||
if (landing_gear_s::GEAR_UP && (_landed || _maybe_landed)) {
|
||||
if (landing_gear.landing_gear == landing_gear_s::GEAR_UP && (_landed || _maybe_landed)) {
|
||||
mavlink_log_critical(&_mavlink_log_pub, "Landed, unable to retract landing gear")
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user