FlightTasks: added simple task switching with possibility do disable FlightTasks completely

This commit is contained in:
Matthias Grob
2018-04-05 07:30:12 +02:00
committed by Beat Küng
parent 37cb8c1a59
commit 88bf40e3cb
2 changed files with 40 additions and 7 deletions
+3 -3
View File
@@ -55,7 +55,7 @@ public:
/**
* Call once on the event where you switch to the task
* Note: Set the necessary input pointers first!
* @return 0 on success, >0 on error otherwise
* @return 0 on success, >0 on error
*/
virtual int activate()
{
@@ -65,13 +65,13 @@ public:
/**
* Call once on the event of switching away from the task
* @return 0 on success, >0 on error otherwise
* @return 0 on success, >0 on error
*/
virtual int disable() = 0;
/**
* To be called regularly in the control loop cycle to execute the task
* @return 0 on success, >0 on error otherwise
* @return 0 on success, >0 on error
*/
virtual int update()
{