mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 05:05:19 +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()
|
const vehicle_trajectory_waypoint_s FlightTasks::getAvoidanceWaypoint()
|
||||||
{
|
{
|
||||||
if (isAnyTaskActive()) {
|
if (isAnyTaskActive()) {
|
||||||
|
|||||||
@@ -78,6 +78,12 @@ public:
|
|||||||
*/
|
*/
|
||||||
const vehicle_constraints_s getConstraints();
|
const vehicle_constraints_s getConstraints();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get landing gear position.
|
||||||
|
* @return landing gear
|
||||||
|
*/
|
||||||
|
const landing_gear_s getGear();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get task avoidance desired waypoints
|
* Get task avoidance desired waypoints
|
||||||
* @return auto triplets in the mc_pos_control
|
* @return auto triplets in the mc_pos_control
|
||||||
|
|||||||
Reference in New Issue
Block a user