mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 07:23:34 +08:00
wip, working on the nuttx wrapper
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
|
||||
SRCS = px4_nuttx_impl.cpp \
|
||||
px4_publisher.cpp \
|
||||
px4_subscriber.cpp
|
||||
px4_subscriber.cpp \
|
||||
px4_nodehandle.cpp
|
||||
|
||||
MAXOPTIMIZATION = -Os
|
||||
|
||||
@@ -36,4 +36,4 @@
|
||||
*
|
||||
* PX4 Middleware Wrapper Nodehandle
|
||||
*/
|
||||
#include <px4_nodehandle.h>
|
||||
#include <platforms/px4_nodehandle.h>
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -36,5 +36,6 @@
|
||||
*
|
||||
* PX4 Middleware Wrapper for Publisher
|
||||
*/
|
||||
#include <platforms/px4_publisher.h>
|
||||
|
||||
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
*
|
||||
* PX4 Middleware Wrapper Subscriber
|
||||
*/
|
||||
|
||||
#include <platforms/px4_subscriber.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user