mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 09:20:36 +08:00
FlightTask: if not in air, reActivate the task which will set the setpoints to current
vehicle state.
This commit is contained in:
committed by
Daniel Agar
parent
1f0d559d65
commit
c3ba2687ac
@@ -130,6 +130,14 @@ const char *FlightTasks::errorToString(const int error)
|
||||
return "This error is not mapped to a string or is unknown.";
|
||||
}
|
||||
|
||||
void FlightTasks::reActivate()
|
||||
{
|
||||
|
||||
if (_current_task.task) {
|
||||
_current_task.task->activate();
|
||||
}
|
||||
}
|
||||
|
||||
void FlightTasks::_updateCommand()
|
||||
{
|
||||
// lazy subscription to command topic
|
||||
|
||||
Reference in New Issue
Block a user