mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 05:10:35 +08:00
FlightTasks: Add interface for landing gear
This commit is contained in:
committed by
Dennis Mannhart
parent
bf9a18a200
commit
6dbed6636d
@@ -47,6 +47,16 @@ const vehicle_constraints_s FlightTasks::getConstraints()
|
||||
}
|
||||
}
|
||||
|
||||
const landing_gear_s FlightTasks::getGear()
|
||||
{
|
||||
if (isAnyTaskActive()) {
|
||||
return _current_task.task->getGear();
|
||||
|
||||
} else {
|
||||
return FlightTask::landing_gear_default_keep;
|
||||
}
|
||||
}
|
||||
|
||||
const vehicle_trajectory_waypoint_s FlightTasks::getAvoidanceWaypoint()
|
||||
{
|
||||
if (isAnyTaskActive()) {
|
||||
|
||||
Reference in New Issue
Block a user