mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 20:03:54 +08:00
small cleanup
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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 <]
|
||||
|
||||
Reference in New Issue
Block a user