diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-02 15:22:21 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-02 15:22:21 +0100 |
commit | 8d3d8a3358c4c44d6de13a0c8e6a88ea98288bf2 (patch) | |
tree | 597b742703ea8731e571b8855e1b93c6de801e93 /src/examples/subscriber/subscriber.cpp | |
parent | 5bb03f1c2db3eb5620caf806b053f8194490969a (diff) | |
download | px4-firmware-8d3d8a3358c4c44d6de13a0c8e6a88ea98288bf2.tar.gz px4-firmware-8d3d8a3358c4c44d6de13a0c8e6a88ea98288bf2.tar.bz2 px4-firmware-8d3d8a3358c4c44d6de13a0c8e6a88ea98288bf2.zip |
subscriber example clean up
Diffstat (limited to 'src/examples/subscriber/subscriber.cpp')
-rw-r--r-- | src/examples/subscriber/subscriber.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/examples/subscriber/subscriber.cpp b/src/examples/subscriber/subscriber.cpp index 3d54a1a2f..a29f9ab93 100644 --- a/src/examples/subscriber/subscriber.cpp +++ b/src/examples/subscriber/subscriber.cpp @@ -36,7 +36,7 @@ void rc_channels_callback(const PX4_TOPIC_T(rc_channels) &msg) { PX4_INFO("I heard: [%llu]", msg.timestamp_last_valid); } void rc_channels_callback2(const PX4_TOPIC_T(rc_channels) &msg) { - PX4_INFO("I heard(2): [%llu]", msg.timestamp_last_valid); + PX4_INFO("I heard (2): [%llu]", msg.timestamp_last_valid); } class RCHandler { @@ -91,14 +91,7 @@ PX4_MAIN_FUNCTION(subscriber) { */ PX4_SUBSCRIBE(n, rc_channels, rc_channels_callback, 100); PX4_SUBSCRIBE(n, rc_channels, rc_channels_callback2, 1000); - //1 - // PX4_SUBSCRIBE(n, rc_channels, callee.rc_channels_callback, , 1000); - //2 - // PX4_SUBSCRIBE(n, rc_channels, rchandler.callback, &rchandler, 1000); - //3 for bind PX4_SUBSCRIBE(n, rc_channels, RCHandler::callback, rchandler, 1000); - // ros::NodeHandle n2; - // n2.subscribe("chatter", 1000, &RCHandler::callback, &rchandler); PX4_INFO("subscribed"); /** |