mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
small cleanup
This commit is contained in:
parent
632a0866ef
commit
1f706eeb2f
@ -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 <]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user