AP_GPS: redetection not necessary for UAVCAN GPS

This commit is contained in:
Siddharth Purohit 2020-07-27 18:23:56 +05:30 committed by Andrew Tridgell
parent 664b181d16
commit d122f00c14
1 changed files with 2 additions and 2 deletions

View File

@ -717,8 +717,8 @@ void AP_GPS::update_instance(uint8_t instance)
state[instance].vdop = GPS_UNKNOWN_DOP;
timing[instance].last_message_time_ms = tnow;
timing[instance].delta_time_ms = GPS_TIMEOUT_MS;
// do not try to detect again if type is MAV
if (_type[instance] == GPS_TYPE_MAV) {
// do not try to detect again if type is MAV or UAVCAN
if (_type[instance] == GPS_TYPE_MAV || _type[instance] == GPS_TYPE_UAVCAN) {
state[instance].status = NO_FIX;
} else {
// free the driver before we run the next detection, so we