This commit is contained in:
Bertrand Songis
2016-09-12 18:32:26 +02:00
parent 4d44eb97f5
commit d44f98d677
9 changed files with 260 additions and 225 deletions
+2 -2
View File
@@ -134,7 +134,7 @@ void OpenTxSimulator::setValues(TxInputs &inputs)
void OpenTxSimulator::setTrim(unsigned int idx, int value)
{
idx = modn12x3[4*getStickMode() + idx];
uint8_t phase = getTrimFlightPhase(getFlightMode(), idx);
uint8_t phase = getTrimFlightMode(getFlightMode(), idx);
setTrimValue(phase, idx, value);
}
@@ -143,7 +143,7 @@ void OpenTxSimulator::getTrims(Trims & trims)
uint8_t phase = getFlightMode();
trims.extended = hasExtendedTrims();
for (uint8_t idx=0; idx<4; idx++) {
trims.values[idx] = getTrimValue(getTrimFlightPhase(phase, idx), idx);
trims.values[idx] = getTrimValue(getTrimFlightMode(phase, idx), idx);
}
for (int i=0; i<2; i++) {