1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

LP-70 Added restrictions to CC/CC3D/Nano when configuring OneShot125

This commit is contained in:
unknown 2015-09-14 22:41:41 +02:00
parent d6fa0bbf35
commit e227b7497d

View File

@ -79,7 +79,25 @@ bool EscPage::isSynchOrOneShotAvailable()
case SetupWizard::CONTROLLER_NANO:
case SetupWizard::CONTROLLER_CC:
case SetupWizard::CONTROLLER_CC3D:
available = getWizard()->getInputType() != SetupWizard::INPUT_PWM;
switch (getWizard()->getVehicleType()) {
case SetupWizard::VEHICLE_MULTI:
switch (getWizard()->getVehicleSubType()) {
case SetupWizard::MULTI_ROTOR_TRI_Y:
case SetupWizard::MULTI_ROTOR_QUAD_X:
case SetupWizard::MULTI_ROTOR_QUAD_H:
case SetupWizard::MULTI_ROTOR_QUAD_PLUS:
available = getWizard()->getInputType() != SetupWizard::INPUT_PWM;
break;
default:
available = false;
break;
}
break;
default:
break;
}
case SetupWizard::CONTROLLER_REVO:
available = true;
break;
default:
break;