mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
refactor uorb: rename published to advertised
No semantic change (yet)
This commit is contained in:
@@ -73,14 +73,14 @@ public:
|
||||
|
||||
bool subscribe() { return _subscription.subscribe(); }
|
||||
|
||||
bool published() { return _subscription.published(); }
|
||||
bool advertised() { return _subscription.advertised(); }
|
||||
|
||||
/**
|
||||
* Check if there is a new update.
|
||||
* */
|
||||
bool updated()
|
||||
{
|
||||
if (published() && (hrt_elapsed_time(&_last_update) >= _interval_us)) {
|
||||
if (advertised() && (hrt_elapsed_time(&_last_update) >= _interval_us)) {
|
||||
return _subscription.updated();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user