diff --git a/ground/gcs/src/plugins/setupwizard/pages/airspeedpage.cpp b/ground/gcs/src/plugins/setupwizard/pages/airspeedpage.cpp index 59c8af10c..d89e370ba 100644 --- a/ground/gcs/src/plugins/setupwizard/pages/airspeedpage.cpp +++ b/ground/gcs/src/plugins/setupwizard/pages/airspeedpage.cpp @@ -47,8 +47,6 @@ void AirSpeedPage::initializePage(VehicleConfigurationSource *settings) settings->getInputType() == VehicleConfigurationSource::INPUT_SRXL || settings->getInputType() == VehicleConfigurationSource::INPUT_HOTT_SUMD || settings->getInputType() == VehicleConfigurationSource::INPUT_EXBUS)) || - (isSparky && (settings->getInputType() == VehicleConfigurationSource::INPUT_HOTT_SUMD || - settings->getInputType() == VehicleConfigurationSource::INPUT_EXBUS)) || settings->getGpsType() == VehicleConfigurationSource::GPS_UBX_FLEXI_I2CMAG) { // Disable non estimated sensors if ports are taken by receivers or I2C Mag setItemDisabled(VehicleConfigurationSource::AIRSPEED_EAGLETREE, true); diff --git a/ground/gcs/src/plugins/setupwizard/pages/gpspage.cpp b/ground/gcs/src/plugins/setupwizard/pages/gpspage.cpp index dbfe2cd4b..3f6c4295b 100644 --- a/ground/gcs/src/plugins/setupwizard/pages/gpspage.cpp +++ b/ground/gcs/src/plugins/setupwizard/pages/gpspage.cpp @@ -41,12 +41,12 @@ void GpsPage::initializePage(VehicleConfigurationSource *settings) setItemDisabled(-1, false); bool isSparky = (getWizard()->getControllerType() == SetupWizard::CONTROLLER_SPARKY2); - // Sbus, dsm and srxl are on rcvrport for sparky2, that leaves mainport/flexiport available for gps/auxmag - if ((!isSparky && (settings->getInputType() == VehicleConfigurationSource::INPUT_SBUS)) || - (!isSparky && (settings->getInputType() == VehicleConfigurationSource::INPUT_DSM)) || - (!isSparky && (settings->getInputType() == VehicleConfigurationSource::INPUT_SRXL)) || - settings->getInputType() == VehicleConfigurationSource::INPUT_HOTT_SUMD || - settings->getInputType() == VehicleConfigurationSource::INPUT_EXBUS) { + // All rcinputs are on rcvrport for sparky2, that leaves mainport/flexiport available for gps/auxmag + if (!isSparky && (settings->getInputType() == VehicleConfigurationSource::INPUT_SBUS || + settings->getInputType() == VehicleConfigurationSource::INPUT_DSM || + settings->getInputType() == VehicleConfigurationSource::INPUT_SRXL || + settings->getInputType() == VehicleConfigurationSource::INPUT_HOTT_SUMD || + settings->getInputType() == VehicleConfigurationSource::INPUT_EXBUS)) { // Disable GPS+I2C Mag setItemDisabled(VehicleConfigurationSource::GPS_UBX_FLEXI_I2CMAG, true); if (getSelectedItem()->id() == VehicleConfigurationSource::GPS_UBX_FLEXI_I2CMAG) { diff --git a/ground/gcs/src/plugins/setupwizard/pages/inputpage.cpp b/ground/gcs/src/plugins/setupwizard/pages/inputpage.cpp index 1249dbda5..298236190 100644 --- a/ground/gcs/src/plugins/setupwizard/pages/inputpage.cpp +++ b/ground/gcs/src/plugins/setupwizard/pages/inputpage.cpp @@ -167,12 +167,11 @@ bool InputPage::restartNeeded(VehicleConfigurationSource::INPUT_TYPE selectedTyp // TODO: Handle all of the DSM types ?? Which is most common? return data.SPK2_RcvrPort != HwSettings::SPK2_RCVRPORT_DSM; - // TODO: Sparky2: Move Hott and Exbus to Receiver port. case VehicleConfigurationSource::INPUT_HOTT_SUMD: - return data.SPK2_FlexiPort != HwSettings::SPK2_FLEXIPORT_HOTTSUMD; + return data.SPK2_RcvrPort != HwSettings::SPK2_RCVRPORT_HOTTSUMD; case VehicleConfigurationSource::INPUT_EXBUS: - return data.SPK2_FlexiPort != HwSettings::SPK2_FLEXIPORT_EXBUS; + return data.SPK2_RcvrPort != HwSettings::SPK2_RCVRPORT_EXBUS; default: return true; } diff --git a/ground/gcs/src/plugins/setupwizard/resources/connection-diagrams.svg b/ground/gcs/src/plugins/setupwizard/resources/connection-diagrams.svg index 0bf228fc5..5e02a3cf8 100644 --- a/ground/gcs/src/plugins/setupwizard/resources/connection-diagrams.svg +++ b/ground/gcs/src/plugins/setupwizard/resources/connection-diagrams.svg @@ -36,7 +36,7 @@ inkscape:window-x="0" inkscape:window-y="27" inkscape:window-maximized="1" - inkscape:current-layer="layer76" + inkscape:current-layer="layer81" fit-margin-top="15" fit-margin-left="15" fit-margin-right="15" @@ -22136,7 +22136,7 @@ sodipodi:insensitive="true"> getControllerType() == VehicleConfigurationSource::CONTROLLER_SPARKY2) { - data.SPK2_FlexiPort = HwSettings::SPK2_FLEXIPORT_HOTTSUMD; + data.SPK2_RcvrPort = HwSettings::SPK2_RCVRPORT_HOTTSUMD; } else { data.RM_FlexiPort = HwSettings::RM_FLEXIPORT_HOTTSUMD; } break; case VehicleConfigurationSource::INPUT_EXBUS: if (m_configSource->getControllerType() == VehicleConfigurationSource::CONTROLLER_SPARKY2) { - data.SPK2_FlexiPort = HwSettings::SPK2_FLEXIPORT_EXBUS; + data.SPK2_RcvrPort = HwSettings::SPK2_RCVRPORT_EXBUS; } else { data.RM_FlexiPort = HwSettings::RM_FLEXIPORT_EXBUS; }