diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-26 11:36:23 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-26 11:36:23 +0100 |
commit | e7c1e5b1ff7b1bbdc11ab2cae6b99fe459487119 (patch) | |
tree | ed69515032079068a3f9fcbf46356a0f860e2f48 /src/platforms/nuttx/px4_nuttx_impl.cpp | |
parent | 3c6f6618e8709c22ac21f8f0353f292f25da22f7 (diff) | |
download | px4-firmware-e7c1e5b1ff7b1bbdc11ab2cae6b99fe459487119.tar.gz px4-firmware-e7c1e5b1ff7b1bbdc11ab2cae6b99fe459487119.tar.bz2 px4-firmware-e7c1e5b1ff7b1bbdc11ab2cae6b99fe459487119.zip |
wip, working on the nuttx wrapper
Diffstat (limited to 'src/platforms/nuttx/px4_nuttx_impl.cpp')
-rw-r--r-- | src/platforms/nuttx/px4_nuttx_impl.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/platforms/nuttx/px4_nuttx_impl.cpp b/src/platforms/nuttx/px4_nuttx_impl.cpp index 3a6529716..4b87f68fe 100644 --- a/src/platforms/nuttx/px4_nuttx_impl.cpp +++ b/src/platforms/nuttx/px4_nuttx_impl.cpp @@ -38,6 +38,7 @@ */ #include <px4.h> +#include <drivers/drv_hrt.h> extern bool task_should_exit; @@ -46,8 +47,7 @@ namespace px4 void init(int argc, char *argv[], const char *process_name) { - px4_warn("process: %s", process_name); - return 0; + PX4_WARN("process: %s", process_name); } uint64_t get_time_micros() @@ -57,7 +57,9 @@ uint64_t get_time_micros() bool ok() { - return !task_should_exit; + // return !task_should_exit; + //XXX + return true; } void spin_once() |