mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_GPS: allow for EAHRS_SENSORS to not include GPS
this allows external AHRS GPS to not be presented to AP_GPS as a possible driver
This commit is contained in:
parent
7c5a46bac2
commit
669cb6563b
@ -652,8 +652,11 @@ AP_GPS_Backend *AP_GPS::_detect_instance(uint8_t instance)
|
|||||||
#endif
|
#endif
|
||||||
#if HAL_EXTERNAL_AHRS_ENABLED
|
#if HAL_EXTERNAL_AHRS_ENABLED
|
||||||
case GPS_TYPE_EXTERNAL_AHRS:
|
case GPS_TYPE_EXTERNAL_AHRS:
|
||||||
dstate->auto_detected_baud = false; // specified, not detected
|
if (AP::externalAHRS().get_port(AP_ExternalAHRS::AvailableSensor::GPS) >= 0) {
|
||||||
return NEW_NOTHROW AP_GPS_ExternalAHRS(*this, params[instance], state[instance], nullptr);
|
dstate->auto_detected_baud = false; // specified, not detected
|
||||||
|
return NEW_NOTHROW AP_GPS_ExternalAHRS(*this, params[instance], state[instance], nullptr);
|
||||||
|
}
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if AP_GPS_GSOF_ENABLED
|
#if AP_GPS_GSOF_ENABLED
|
||||||
case GPS_TYPE_GSOF:
|
case GPS_TYPE_GSOF:
|
||||||
|
Loading…
Reference in New Issue
Block a user