Reverted: Use OS independent API for task creation/deletion

Keep existing API use in code. Bind the use of the OS independent
implementation in the systemlib layer.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-20 10:49:44 -07:00
parent ddb32742eb
commit bf429188b4
32 changed files with 78 additions and 84 deletions
@@ -38,7 +38,6 @@
* @author Johan Jansen <jnsn.johan@gmail.com>
*/
#include <px4_tasks.h> //usleep
#include <unistd.h> //usleep
#include <stdio.h>
#include <string.h>
@@ -96,7 +95,7 @@ static void land_detector_stop()
/* if we have given up, kill it */
if (++i > 50) {
px4_task_delete(_landDetectorTaskID);
task_delete(_landDetectorTaskID);
break;
}
} while (land_detector_task->isRunning());
@@ -137,7 +136,7 @@ static int land_detector_start(const char *mode)
}
//Start new thread task
_landDetectorTaskID = px4_task_spawn_cmd("land_detector",
_landDetectorTaskID = task_spawn_cmd("land_detector",
SCHED_DEFAULT,
SCHED_PRIORITY_DEFAULT,
1000,