1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 00:05:17 +03:00
This commit is contained in:
Kjell Kernen 2014-04-03 10:12:33 +02:00
parent e2f0fc039f
commit 2335c13a90

View file

@ -55,8 +55,10 @@ void WizMix::addMix(ModelData &model, Input input, int weight, int channel, int
if (input >= RUDDER_INPUT && input <= AILERONS_INPUT) {
MixData & mix = model.mixData[mixIndex++];
mix.destCh = channel+1;
if (isTaranis)
mix.srcRaw = RawSource(SOURCE_TYPE_VIRTUAL_INPUT, input-1, &model);
if (isTaranis){
RawSource tmpSource = settings.getDefaultSource( input-1 );
mix.srcRaw = RawSource(SOURCE_TYPE_VIRTUAL_INPUT, tmpSource.index, &model);
}
else
mix.srcRaw = RawSource(SOURCE_TYPE_STICK, input-1);
mix.weight = weight;