aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-11-25 11:50:35 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-11-25 11:50:35 +0100
commit55cf2fc61c7b90725cd960f9c7d72737024f1cfc (patch)
treedca32b803a55a4f2154c8fc08d5b6bcfb035c8b7 /src/include
parentc167df90380fdd99d1b56024c4de104a3f0a2f85 (diff)
downloadpx4-firmware-55cf2fc61c7b90725cd960f9c7d72737024f1cfc.tar.gz
px4-firmware-55cf2fc61c7b90725cd960f9c7d72737024f1cfc.tar.bz2
px4-firmware-55cf2fc61c7b90725cd960f9c7d72737024f1cfc.zip
WIP, towards more px4 compatibility, first macros
Diffstat (limited to 'src/include')
-rw-r--r--src/include/px4.h5
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"