small cleanup

This commit is contained in:
Thomas Gubler 2015-01-21 14:34:34 +01:00
parent 632a0866ef
commit 1f706eeb2f
2 changed files with 1 additions and 3 deletions

View File

@ -48,6 +48,5 @@ public:
int main();
protected:
px4::NodeHandle _n;
// px4::Publisher<px4::px4_rc_channels> * _rc_channels_pub;
px4::Publisher * _rc_channels_pub;
};

View File

@ -66,8 +66,7 @@ SubscriberExample::SubscriberExample() :
/* Function */
// PX4_SUBSCRIBE(_n, rc_channels, rc_channels_callback_function, _interval);
_n.subscribe<px4_rc_channels>(rc_channels_callback_function); //ROS version
// _n.subscribe<px4_rc_channels>(std::bind(&rc_channels_callback_function, std::placeholders::_1)); UORB version
// [> Class Method <]
// PX4_SUBSCRIBE(_n, rc_channels, SubscriberExample::rc_channels_callback, this, 1000);
// [> No callback <]