mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
Move FWing ESC setting to use the setter.
This commit is contained in:
parent
e4a4f35178
commit
169b95fb4d
@ -46,6 +46,7 @@ bool VehiclePage::validatePage()
|
|||||||
getWizard()->setVehicleType(SetupWizard::VEHICLE_MULTI);
|
getWizard()->setVehicleType(SetupWizard::VEHICLE_MULTI);
|
||||||
} else if (ui->fixedwingButton->isChecked()) {
|
} else if (ui->fixedwingButton->isChecked()) {
|
||||||
getWizard()->setVehicleType(SetupWizard::VEHICLE_FIXEDWING);
|
getWizard()->setVehicleType(SetupWizard::VEHICLE_FIXEDWING);
|
||||||
|
getWizard()->setEscType(SetupWizard::ESC_STANDARD);
|
||||||
} else if (ui->heliButton->isChecked()) {
|
} else if (ui->heliButton->isChecked()) {
|
||||||
getWizard()->setVehicleType(SetupWizard::VEHICLE_HELI);
|
getWizard()->setVehicleType(SetupWizard::VEHICLE_HELI);
|
||||||
} else if (ui->surfaceButton->isChecked()) {
|
} else if (ui->surfaceButton->isChecked()) {
|
||||||
|
@ -312,9 +312,6 @@ QString SetupWizard::getSummaryText()
|
|||||||
|
|
||||||
summary.append("<br>");
|
summary.append("<br>");
|
||||||
summary.append("<b>").append(tr("Speed Controller (ESC) type: ")).append("</b>");
|
summary.append("<b>").append(tr("Speed Controller (ESC) type: ")).append("</b>");
|
||||||
if (getVehicleType() == VEHICLE_FIXEDWING) {
|
|
||||||
summary.append(tr("Standard ESC (50 Hz)"));
|
|
||||||
} else {
|
|
||||||
switch (getEscType()) {
|
switch (getEscType()) {
|
||||||
case ESC_STANDARD:
|
case ESC_STANDARD:
|
||||||
summary.append(tr("Legacy ESC (50 Hz)"));
|
summary.append(tr("Legacy ESC (50 Hz)"));
|
||||||
@ -325,7 +322,6 @@ QString SetupWizard::getSummaryText()
|
|||||||
default:
|
default:
|
||||||
summary.append(tr("Unknown"));
|
summary.append(tr("Unknown"));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (getVehicleSubType() == MULTI_ROTOR_TRI_Y || getVehicleType() == VEHICLE_FIXEDWING) {
|
if (getVehicleSubType() == MULTI_ROTOR_TRI_Y || getVehicleType() == VEHICLE_FIXEDWING) {
|
||||||
summary.append("<br>");
|
summary.append("<br>");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user