wip, working on the nuttx wrapper

This commit is contained in:
Thomas Gubler
2014-11-26 11:36:23 +01:00
parent 3c6f6618e8
commit e7c1e5b1ff
16 changed files with 101 additions and 59 deletions
+4 -6
View File
@@ -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"