aboutsummaryrefslogtreecommitdiff
path: root/src/platforms
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-11-26 11:55:41 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-11-26 11:55:48 +0100
commit0474908e1c600d312934fcdd5790813813e799b1 (patch)
tree5e47f22e8d98b28453bd0b34e5c982a3f8949d63 /src/platforms
parente7c1e5b1ff7b1bbdc11ab2cae6b99fe459487119 (diff)
downloadpx4-firmware-0474908e1c600d312934fcdd5790813813e799b1.tar.gz
px4-firmware-0474908e1c600d312934fcdd5790813813e799b1.tar.bz2
px4-firmware-0474908e1c600d312934fcdd5790813813e799b1.zip
reenable task flag
Diffstat (limited to 'src/platforms')
-rw-r--r--src/platforms/nuttx/px4_nodehandle.cpp5
-rw-r--r--src/platforms/nuttx/px4_nuttx_impl.cpp5
-rw-r--r--src/platforms/px4_middleware.h2
3 files changed, 8 insertions, 4 deletions
diff --git a/src/platforms/nuttx/px4_nodehandle.cpp b/src/platforms/nuttx/px4_nodehandle.cpp
index 473a5cf77..091b5c6c6 100644
--- a/src/platforms/nuttx/px4_nodehandle.cpp
+++ b/src/platforms/nuttx/px4_nodehandle.cpp
@@ -37,3 +37,8 @@
* PX4 Middleware Wrapper Nodehandle
*/
#include <platforms/px4_nodehandle.h>
+
+namespace px4
+{
+bool task_should_exit = false;
+}
diff --git a/src/platforms/nuttx/px4_nuttx_impl.cpp b/src/platforms/nuttx/px4_nuttx_impl.cpp
index 4b87f68fe..6471e3e38 100644
--- a/src/platforms/nuttx/px4_nuttx_impl.cpp
+++ b/src/platforms/nuttx/px4_nuttx_impl.cpp
@@ -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()
diff --git a/src/platforms/px4_middleware.h b/src/platforms/px4_middleware.h
index eebfc9049..a09d9ac58 100644
--- a/src/platforms/px4_middleware.h
+++ b/src/platforms/px4_middleware.h
@@ -68,6 +68,8 @@ private:
};
+extern bool task_should_exit;
+
// /**
// * A limiter/ saturation.
// * The output of update is the input, bounded