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:
parent
d6fa0bbf35
commit
e227b7497d
@ -79,8 +79,26 @@ bool EscPage::isSynchOrOneShotAvailable()
|
||||
case SetupWizard::CONTROLLER_NANO:
|
||||
case SetupWizard::CONTROLLER_CC:
|
||||
case SetupWizard::CONTROLLER_CC3D:
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user