1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

Changed Wizard defaults for servo direction slightly to reflect that elevons and ailerons move in different directions, while airbrakes and flaps move in the same direction.

Mirrored wing servo installations are assumed.
This commit is contained in:
Kjell Kernen 2014-04-03 14:06:43 +02:00
parent b7a4b75479
commit 42db8824ab
2 changed files with 6 additions and 6 deletions

View file

@ -65,12 +65,12 @@ void WizMix::addMix(ModelData &model, Input input, int weight, int channel, int
} }
else if (input==FLAPS_INPUT){ else if (input==FLAPS_INPUT){
// There must be some kind of constants for switches somewhere... // There must be some kind of constants for switches somewhere...
maxMixSwitch( model.mixData[mixIndex++], channel+1, isTaranis ? 1 :-3 , -100); //SA-UP or ELE-UP maxMixSwitch( model.mixData[mixIndex++], channel+1, isTaranis ? 1 :-3 , -1*weight); //SA-UP or ELE-UP
maxMixSwitch( model.mixData[mixIndex++], channel+1, isTaranis ? 3 : 3 , 100); //SA-DOWN or ELE-DOWN maxMixSwitch( model.mixData[mixIndex++], channel+1, isTaranis ? 3 : 3 , weight); //SA-DOWN or ELE-DOWN
} }
else if (input==AIRBRAKES_INPUT){ else if (input==AIRBRAKES_INPUT){
maxMixSwitch( model.mixData[mixIndex++], channel+1, isTaranis ? 13 :-2 , -100); //SE-UP or RUD-UP maxMixSwitch( model.mixData[mixIndex++], channel+1, isTaranis ? 13 :-2 , -1*weight); //SE-UP or RUD-UP
maxMixSwitch( model.mixData[mixIndex++], channel+1, isTaranis ? 15 : 2 , 100); //SE-DOWN or RUD-DOWN maxMixSwitch( model.mixData[mixIndex++], channel+1, isTaranis ? 15 : 2 , weight); //SE-DOWN or RUD-DOWN
} }
} }
} }

View file

@ -481,7 +481,7 @@ bool FlapsPage::validatePage() {
return (bookChannel(flap1CB, FLAPS_INPUT, 100 )); return (bookChannel(flap1CB, FLAPS_INPUT, 100 ));
} }
return( bookChannel(flap1CB, FLAPS_INPUT, 100 ) && return( bookChannel(flap1CB, FLAPS_INPUT, 100 ) &&
bookChannel(flap2CB, FLAPS_INPUT, 100 )); bookChannel(flap2CB, FLAPS_INPUT, -100 ));
} }
void FlapsPage::noFlapChannel(){ flap1CB->setEnabled(false);flap2CB->setEnabled(false);} void FlapsPage::noFlapChannel(){ flap1CB->setEnabled(false);flap2CB->setEnabled(false);}
@ -530,7 +530,7 @@ bool AirbrakesPage::validatePage() {
return (bookChannel(airbrake1CB, AIRBRAKES_INPUT, 100 )); return (bookChannel(airbrake1CB, AIRBRAKES_INPUT, 100 ));
} }
return( bookChannel(airbrake1CB, AIRBRAKES_INPUT, 100 ) && return( bookChannel(airbrake1CB, AIRBRAKES_INPUT, 100 ) &&
bookChannel(airbrake2CB, AIRBRAKES_INPUT, 100 )); bookChannel(airbrake2CB, AIRBRAKES_INPUT, -100 ));
} }
void AirbrakesPage::noAirbrakeChannel(){ airbrake1CB->setEnabled(false);airbrake2CB->setEnabled(false);} void AirbrakesPage::noAirbrakeChannel(){ airbrake1CB->setEnabled(false);airbrake2CB->setEnabled(false);}