clean up subscriber example

This commit is contained in:
Thomas Gubler 2015-01-21 18:05:31 +01:00
parent ed526173bb
commit f60e65b38f
2 changed files with 2 additions and 6 deletions

View File

@ -43,8 +43,6 @@
using namespace px4;
// void rc_channels_callback_function(const PX4_TOPIC_T(rc_channels) &msg) {
void rc_channels_callback_function(const px4_rc_channels &msg);
void rc_channels_callback_function(const px4_rc_channels &msg) {
PX4_INFO("I heard: [%llu]", msg.data().timestamp_last_valid);
}
@ -64,7 +62,6 @@ SubscriberExample::SubscriberExample() :
/* Do some subscriptions */
/* Function */
// PX4_SUBSCRIBE(_n, rc_channels, rc_channels_callback_function, _interval);
_n.subscribe<px4_rc_channels>(rc_channels_callback_function); //ROS version
// [> Class Method <]

View File

@ -41,7 +41,7 @@
using namespace px4;
void rc_channels_callback_function(const PX4_TOPIC_T(rc_channels) &msg);
void rc_channels_callback_function(const px4_rc_channels &msg);
class SubscriberExample {
public:
@ -56,7 +56,6 @@ protected:
int32_t _interval;
px4_param_t _p_test_float;
float _test_float;
// px4::PX4_SUBSCRIBER(rc_channels) * _sub_rc_chan;
px4::Subscriber<px4_rc_channels> * _sub_rc_chan;
// void rc_channels_callback(const PX4_TOPIC_T(rc_channels) &msg);