wip, working on the nuttx wrapper

This commit is contained in:
Thomas Gubler
2014-11-26 11:36:23 +01:00
parent 3c6f6618e8
commit e7c1e5b1ff
16 changed files with 101 additions and 59 deletions
+2 -1
View File
@@ -37,6 +37,7 @@
SRCS = px4_nuttx_impl.cpp \
px4_publisher.cpp \
px4_subscriber.cpp
px4_subscriber.cpp \
px4_nodehandle.cpp
MAXOPTIMIZATION = -Os
+1 -1
View File
@@ -36,4 +36,4 @@
*
* PX4 Middleware Wrapper Nodehandle
*/
#include <px4_nodehandle.h>
#include <platforms/px4_nodehandle.h>
+5 -3
View File
@@ -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()
+1
View File
@@ -36,5 +36,6 @@
*
* PX4 Middleware Wrapper for Publisher
*/
#include <platforms/px4_publisher.h>
+1 -1
View File
@@ -36,5 +36,5 @@
*
* PX4 Middleware Wrapper Subscriber
*/
#include <platforms/px4_subscriber.h>