FlightTasks: Add interface for landing gear

This commit is contained in:
Simone Guscetti
2018-11-01 17:45:13 +01:00
committed by Dennis Mannhart
parent bf9a18a200
commit 6dbed6636d
2 changed files with 16 additions and 0 deletions
+10
View File
@@ -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()) {
+6
View File
@@ -78,6 +78,12 @@ public:
*/
const vehicle_constraints_s getConstraints();
/**
* Get landing gear position.
* @return landing gear
*/
const landing_gear_s getGear();
/**
* Get task avoidance desired waypoints
* @return auto triplets in the mc_pos_control