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

GCS-Config wizard

Made the wizard set stab1,2,3 as default flight modes for multis
This commit is contained in:
PT_Dreamer 2012-10-09 00:16:22 +01:00
parent 047201211b
commit 4b5c88589c

View File

@ -403,6 +403,16 @@ void VehicleConfigurationHelper::applyManualControlDefaults()
cData.ChannelNumber[ManualControlSettings::CHANNELGROUPS_PITCH] = 4;
cData.ChannelNumber[ManualControlSettings::CHANNELGROUPS_FLIGHTMODE] = 5;
switch(m_configSource->getVehicleType())
{
case VehicleConfigurationSource::VEHICLE_MULTI:
cData.FlightModePosition[0]=ManualControlSettings::FLIGHTMODEPOSITION_STABILIZED1;
cData.FlightModePosition[1]=ManualControlSettings::FLIGHTMODEPOSITION_STABILIZED2;
cData.FlightModePosition[2]=ManualControlSettings::FLIGHTMODEPOSITION_STABILIZED3;
break;
default:
break;
}
mcSettings->setData(cData);
addModifiedObject(mcSettings, tr("Writing manual control defaults"));
}