mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 17:13:33 +08:00
gps: retry switching RTCM injection more often
I don't think it makes sense to slow down switching RTCM injection to once every 5 seconds. If we don't have corrections, we should check and use whatever we get as soon as possible. Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
@@ -526,7 +526,6 @@ void GPS::handleInjectDataTopic()
|
||||
|
||||
// If there has not been a valid RTCM message for a while, try to switch to a different RTCM link
|
||||
if ((hrt_absolute_time() - _last_rtcm_injection_time) > 5_s) {
|
||||
_last_rtcm_injection_time = hrt_absolute_time();
|
||||
|
||||
for (uint8_t i = 0; i < gps_inject_data_s::MAX_INSTANCES; i++) {
|
||||
if (_orb_inject_data_sub.ChangeInstance(i)) {
|
||||
|
||||
Reference in New Issue
Block a user