mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 11:23:34 +08:00
FlightTask: Add initialisation of the landing gear
This commit is contained in:
committed by
Dennis Mannhart
parent
de185726b3
commit
aaddb845c4
@@ -36,6 +36,7 @@ bool FlightTask::activate()
|
|||||||
_setDefaultConstraints();
|
_setDefaultConstraints();
|
||||||
_time_stamp_activate = hrt_absolute_time();
|
_time_stamp_activate = hrt_absolute_time();
|
||||||
_heading_reset_counter = _sub_attitude->get().quat_reset_counter;
|
_heading_reset_counter = _sub_attitude->get().quat_reset_counter;
|
||||||
|
_gear = landing_gear_default_keep;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user