mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 05:57:34 +08:00
wip, working on the nuttx wrapper
This commit is contained in:
+4
-6
@@ -46,19 +46,17 @@
|
||||
* Building for running within the ROS environment
|
||||
*/
|
||||
#include "ros/ros.h"
|
||||
#include "px4/rc_channels.h"
|
||||
|
||||
#define PX4_WARN ROS_WARN
|
||||
#define PX4_INFO ROS_INFO
|
||||
#define PX4_TOPIC(name) #name
|
||||
#else
|
||||
/*
|
||||
* Building for NuttX
|
||||
*/
|
||||
#include <nuttx/config.h>
|
||||
#include <uORB/uORB.h>
|
||||
#include <uORB/topics/rc_channels.h>
|
||||
#include <systemlib/err.h>
|
||||
|
||||
#define PX4_WARN warnx
|
||||
#define PX4_INFO warnx
|
||||
#define PX4_TOPIC(name) ORB_ID(name)
|
||||
#endif
|
||||
|
||||
#include "../platforms/px4_defines.h"
|
||||
|
||||
Reference in New Issue
Block a user