aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/px4_nodehandle.h
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-11-25 09:20:57 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-11-25 09:20:57 +0100
commit0a3492fc328280422df9472d3d8a586d92242feb (patch)
treeac3903ff2dba56a3e996c0e70beeaf6865beefb3 /src/platforms/px4_nodehandle.h
parentbb8375e1f6e303220290c267e23d69f2c5d18d3b (diff)
downloadpx4-firmware-0a3492fc328280422df9472d3d8a586d92242feb.tar.gz
px4-firmware-0a3492fc328280422df9472d3d8a586d92242feb.tar.bz2
px4-firmware-0a3492fc328280422df9472d3d8a586d92242feb.zip
define default queue size
Diffstat (limited to 'src/platforms/px4_nodehandle.h')
-rw-r--r--src/platforms/px4_nodehandle.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platforms/px4_nodehandle.h b/src/platforms/px4_nodehandle.h
index 9bbf5c724..6880d74f6 100644
--- a/src/platforms/px4_nodehandle.h
+++ b/src/platforms/px4_nodehandle.h
@@ -41,6 +41,7 @@
#if defined(__linux) || (defined(__APPLE__) && defined(__MACH__))
#include "ros/ros.h"
#include <list>
+#define QUEUE_SIZE_DEFAULT 1000
#endif
namespace px4
@@ -56,7 +57,7 @@ public:
template<class M>
Subscriber subscribe(const char *topic, void(*fp)(M)) {
- ros::Subscriber ros_sub = ros::NodeHandle::subscribe(topic, 1000, fp);
+ ros::Subscriber ros_sub = ros::NodeHandle::subscribe(topic, QUEUE_SIZE_DEFAULT, fp);
//XXX create list here, for ros and nuttx
Subscriber sub(ros_sub);
_subs.push_back(sub);