mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
uORB: SubscriptionCallback cleanup naming
This commit is contained in:
@@ -53,6 +53,7 @@ public:
|
||||
* Constructor
|
||||
*
|
||||
* @param meta The uORB metadata (usually from the ORB_ID() macro) for the topic.
|
||||
* @param interval_ms The requested maximum update interval in milliseconds.
|
||||
* @param instance The instance for multi sub.
|
||||
*/
|
||||
SubscriptionCallback(const orb_metadata *meta, uint8_t interval_ms = 0, uint8_t instance = 0) :
|
||||
@@ -62,10 +63,10 @@ public:
|
||||
|
||||
virtual ~SubscriptionCallback()
|
||||
{
|
||||
unregister_callback();
|
||||
unregisterCallback();
|
||||
};
|
||||
|
||||
bool register_callback()
|
||||
bool registerCallback()
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
@@ -91,7 +92,7 @@ public:
|
||||
return ret;
|
||||
}
|
||||
|
||||
void unregister_callback()
|
||||
void unregisterCallback()
|
||||
{
|
||||
if (_subscription.get_node()) {
|
||||
_subscription.get_node()->unregister_callback(this);
|
||||
|
||||
Reference in New Issue
Block a user