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

Bugfix, oops: missed a couple resetMixerVector opportunities.

This commit is contained in:
Mike LaBranche 2012-06-13 15:14:18 -07:00
parent 8de40c7847
commit a7ae258bc8

View File

@ -399,7 +399,10 @@ bool ConfigFixedWingWidget::setupFrameElevon(QString airframeType)
double value;
//disable all
for (channel=0; channel<VehicleConfig::CHANNEL_NUMELEM; channel++)
{
setMixerType(mixer,channel,VehicleConfig::MIXERTYPE_DISABLED);
resetMixerVector(mixer, channel);
}
//motor
channel = m_aircraft->fwEngineChannelBox->currentIndex()-1;
@ -481,7 +484,10 @@ bool ConfigFixedWingWidget::setupFrameVtail(QString airframeType)
double value;
//disable all
for (channel=0; channel<VehicleConfig::CHANNEL_NUMELEM; channel++)
{
setMixerType(mixer,channel,VehicleConfig::MIXERTYPE_DISABLED);
resetMixerVector(mixer, channel);
}
//motor
channel = m_aircraft->fwEngineChannelBox->currentIndex()-1;