diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/px4.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/px4.h b/src/include/px4.h index bb97f2a8a..391972b12 100644 --- a/src/include/px4.h +++ b/src/include/px4.h @@ -46,14 +46,19 @@ * Building for running within the ROS environment */ #include "ros/ros.h" + #define PX4_WARN ROS_WARN #define PX4_INFO ROS_INFO +#define PX4_TOPIC(name) #name #else /* * Building for NuttX */ +#include <uORB/uORB.h> + #define PX4_WARN warnx #define PX4_INFO warnx +#define PX4_TOPIC(name) ORB_ID(name) #endif #include "../platforms/px4_defines.h" |