mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 11:53:34 +08:00
refactor uorb: rename published to advertised
No semantic change (yet)
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
/** Get the minimum interval at which the topic can be seen to be updated for this subscription */
|
||||
#define ORBIOCGETINTERVAL _ORBIOC(16)
|
||||
|
||||
/** Check whether the topic is published, sets *(unsigned long *)arg to 1 if published, 0 otherwise */
|
||||
#define ORBIOCISPUBLISHED _ORBIOC(17)
|
||||
/** Check whether the topic is advertised, sets *(unsigned long *)arg to 1 if advertised, 0 otherwise */
|
||||
#define ORBIOCISADVERTISED _ORBIOC(17)
|
||||
|
||||
#endif /* _DRV_UORB_H */
|
||||
|
||||
@@ -136,7 +136,7 @@ void Heater::initialize_topics()
|
||||
for (uint8_t x = 0; x < number_of_imus; x++) {
|
||||
_sensor_accel_sub = uORB::Subscription{ORB_ID(sensor_accel), x};
|
||||
|
||||
if (!_sensor_accel_sub.published()) {
|
||||
if (!_sensor_accel_sub.advertised()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user