1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

Add for other airframe types

This commit is contained in:
Fredrik Larson 2014-09-05 17:21:37 +10:00
parent b1a7f959b5
commit ce64aa2ca7

View File

@ -160,20 +160,10 @@ int SetupWizard::nextId() const
// case PAGE_REVO_CALIBRATION:
// return PAGE_OUTPUT_CALIBRATION;
case PAGE_OUTPUT_CALIBRATION:
{
switch (getVehicleType()) {
case VEHICLE_FIXEDWING:
return PAGE_AIRFRAME_INITIAL_TUNING;
// TODO: PID selection pages for multi and heli
case VEHICLE_MULTI:
case VEHICLE_HELI:
case VEHICLE_SURFACE:
case VEHICLE_UNKNOWN:
return PAGE_SAVE;
}
}
return PAGE_AIRFRAME_INITIAL_TUNING;
case PAGE_AIRFRAME_INITIAL_TUNING:
return PAGE_SAVE;
case PAGE_GPS:
switch (getVehicleType()) {
@ -186,9 +176,6 @@ int SetupWizard::nextId() const
case PAGE_AIRSPEED:
return PAGE_SUMMARY;
case PAGE_AIRFRAME_INITIAL_TUNING:
return PAGE_SAVE;
case PAGE_SUMMARY:
{
switch (getControllerType()) {