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"); /**