WIP, towards more px4 compatibility, first macros

This commit is contained in:
Thomas Gubler
2014-11-25 11:50:35 +01:00
parent c167df9038
commit 55cf2fc61c
8 changed files with 69 additions and 8 deletions
+5
View File
@@ -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"