uORB: SubscriptionCallback cleanup naming

This commit is contained in:
Daniel Agar
2019-06-29 13:27:05 -04:00
parent 3f9b3fb4da
commit fd67bd0680
9 changed files with 29 additions and 28 deletions
+4 -3
View File
@@ -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);
+1 -1
View File
@@ -137,7 +137,7 @@ protected:
Subscription _subscription;
uint64_t _last_update{0}; // last update in microseconds
uint32_t _interval_us{0}; // maximum update interval in microseconds
uint32_t _interval_us{0}; // maximum update interval in microseconds
};