forked from Archive/PX4-Autopilot
* Enable a workaround for #5438 * Disable Travis Slack integration * Fix formatting
This commit is contained in:
parent
78df9de4c4
commit
e011a528eb
|
@ -130,4 +130,4 @@ notifications:
|
|||
- secure: "QKw73Zel/s3JAbe/7XyO9tPnJwiiGFpYzSjdR8lG3tYFjRdXZnhxG4c+G7bkgkaPTS4Hult33VXE3kcEqOI7+C+eRwRlZhDfL0knQbXVCxjcLjzmUFdoPOwurlgZDw66PFWCi5tZcLKSRo3u4U8ibT4WKi3jm9sDSyOcfBAucMU="
|
||||
on_pull_requests: false
|
||||
on_success: never # options: [always|never|change] default: always
|
||||
on_failure: change # options: [always|never|change] default: always
|
||||
on_failure: never # options: [always|never|change] default: always
|
||||
|
|
|
@ -157,6 +157,15 @@ MavlinkOrbSubscription::is_published()
|
|||
return true;
|
||||
}
|
||||
|
||||
// This is a workaround for this issue:
|
||||
// https://github.com/PX4/Firmware/issues/5438
|
||||
#if defined(__PX4_LINUX) || defined(__PX4_QURT)
|
||||
|
||||
if (_fd < 0) {
|
||||
_fd = orb_subscribe_multi(_topic, _instance);
|
||||
}
|
||||
|
||||
#else
|
||||
// Telemetry can sustain an initial published check at 10 Hz
|
||||
hrt_abstime now = hrt_absolute_time();
|
||||
|
||||
|
@ -175,6 +184,8 @@ MavlinkOrbSubscription::is_published()
|
|||
_fd = orb_subscribe_multi(_topic, _instance);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
bool updated;
|
||||
orb_check(_fd, &updated);
|
||||
|
||||
|
|
Loading…
Reference in New Issue