mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 05:53:34 +08:00
FlightTask AutoMapper: Use deploy gear information
This commit is contained in:
committed by
Dennis Mannhart
parent
66f85ff9ae
commit
1412e0494c
@@ -89,7 +89,7 @@ bool FlightTaskAutoMapper::update()
|
|||||||
// during mission and reposition, raise the landing gears but only
|
// during mission and reposition, raise the landing gears but only
|
||||||
// if altitude is high enough
|
// if altitude is high enough
|
||||||
if (_highEnoughForLandingGear()) {
|
if (_highEnoughForLandingGear()) {
|
||||||
_gear.landing_gear = landing_gear_s::GEAR_UP;
|
_gear.landing_gear = _deploy_gear ? landing_gear_s::GEAR_DOWN : landing_gear_s::GEAR_UP;
|
||||||
}
|
}
|
||||||
|
|
||||||
// update previous type
|
// update previous type
|
||||||
|
|||||||
Reference in New Issue
Block a user