mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 07:23:35 +08:00
reenable task flag
This commit is contained in:
@@ -37,3 +37,8 @@
|
||||
* PX4 Middleware Wrapper Nodehandle
|
||||
*/
|
||||
#include <platforms/px4_nodehandle.h>
|
||||
|
||||
namespace px4
|
||||
{
|
||||
bool task_should_exit = false;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
#include <px4.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
extern bool task_should_exit;
|
||||
|
||||
namespace px4
|
||||
{
|
||||
@@ -57,9 +56,7 @@ uint64_t get_time_micros()
|
||||
|
||||
bool ok()
|
||||
{
|
||||
// return !task_should_exit;
|
||||
//XXX
|
||||
return true;
|
||||
return !task_should_exit;
|
||||
}
|
||||
|
||||
void spin_once()
|
||||
|
||||
@@ -68,6 +68,8 @@ private:
|
||||
|
||||
};
|
||||
|
||||
extern bool task_should_exit;
|
||||
|
||||
// /**
|
||||
// * A limiter/ saturation.
|
||||
// * The output of update is the input, bounded
|
||||
|
||||
Reference in New Issue
Block a user