diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-28 11:38:22 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-28 11:38:22 +0100 |
commit | 16f21d36dce17868f455318273140013febb6770 (patch) | |
tree | 954ca2efc6c1ccb7a3560cfa025c9bb0d50888b1 /src/platforms/px4_nodehandle.h | |
parent | b351d67175e328ce3ab16642cdc69f6b8a239366 (diff) | |
download | px4-firmware-16f21d36dce17868f455318273140013febb6770.tar.gz px4-firmware-16f21d36dce17868f455318273140013febb6770.tar.bz2 px4-firmware-16f21d36dce17868f455318273140013febb6770.zip |
actually call callback
Diffstat (limited to 'src/platforms/px4_nodehandle.h')
-rw-r--r-- | src/platforms/px4_nodehandle.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platforms/px4_nodehandle.h b/src/platforms/px4_nodehandle.h index f473bf629..e228dfca5 100644 --- a/src/platforms/px4_nodehandle.h +++ b/src/platforms/px4_nodehandle.h @@ -106,8 +106,6 @@ public: template<typename M> Subscriber * subscribe(const struct orb_metadata *meta, std::function<void(const M&)> callback) { - // Subscriber * subscribe(const struct orb_metadata *meta, std::function<void(int i)> callback) { - // Subscriber * subscribe(const struct orb_metadata *meta, CallbackFunction callback) { unsigned interval = 0;//XXX decide how to wrap this, ros equivalent? //XXX Subscriber *sub = new SubscriberPX4<M>(meta, interval, callback, &_subs); @@ -124,7 +122,9 @@ public: void spinOnce(); void spin() { - //XXX: call callbacks and do not return until task is terminated + while (true) { //XXX + spinOnce(); + } } private: static const uint16_t kMaxSubscriptions = 100; |