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

OP-521: Fixed reversal of flight mode in GCS properly now I have hardware to

test it :)
This commit is contained in:
James Cotton 2011-06-08 12:01:47 -05:00
parent 68d6e7deba
commit f361603a10

View File

@ -581,7 +581,7 @@ void ConfigInputWidget::updateChannels(UAVObject* controlCommand)
ManualControlSettings * manualSettings = ManualControlSettings::GetInstance(getObjectManager());
ManualControlSettings::DataFields manualSettingsData = manualSettings->getData();
uint chIndex = manualSettingsData.FlightMode;
if (chIndex < manualSettings->FLIGHTMODEPOSITION_NUMELEM - 1) {
if (chIndex < manualSettings->FLIGHTMODE_NONE) {
float valueScaled;
int chMin = manualSettingsData.ChannelMin[chIndex];