From 8d3d8a3358c4c44d6de13a0c8e6a88ea98288bf2 Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Tue, 2 Dec 2014 15:22:21 +0100 Subject: [PATCH] subscriber example clean up --- src/examples/subscriber/subscriber.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/examples/subscriber/subscriber.cpp b/src/examples/subscriber/subscriber.cpp index 3d54a1a2ff..a29f9ab934 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"); /**