Merge branch 'upstream/next'
This commit is contained in:
@@ -239,8 +239,6 @@ int Er9xInterface::getCapability(const Capability capability)
|
||||
return 13;
|
||||
case Outputs:
|
||||
return 16;
|
||||
case ExtraChannels:
|
||||
return 0;
|
||||
case Simulation:
|
||||
return 1;
|
||||
case Telemetry:
|
||||
|
||||
@@ -283,8 +283,6 @@ int Ersky9xInterface::getCapability(const Capability capability)
|
||||
return 13;
|
||||
case Outputs:
|
||||
return ERSKY9X_NUM_CHNOUT_V11;
|
||||
case ExtraChannels:
|
||||
return 0;
|
||||
case Simulation:
|
||||
return 1;
|
||||
case Telemetry:
|
||||
|
||||
@@ -241,8 +241,6 @@ int Gruvin9xInterface::getCapability(const Capability capability)
|
||||
return 13;
|
||||
case Outputs:
|
||||
return 16;
|
||||
case ExtraChannels:
|
||||
return 0;
|
||||
case ExtendedTrims:
|
||||
return 500;
|
||||
case Simulation:
|
||||
|
||||
@@ -705,8 +705,9 @@ class FlightModeField: public TransformedField {
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (int i=0; i<NUM_STICKS; i++)
|
||||
for (int i=0; i<NUM_STICKS; i++) {
|
||||
internalField.Append(new SignedField<16>(trimBase[i]));
|
||||
}
|
||||
}
|
||||
|
||||
internalField.Append(new SwitchField<8>(phase.swtch, board, version));
|
||||
@@ -776,22 +777,29 @@ class FlightModeField: public TransformedField {
|
||||
}
|
||||
}
|
||||
else {
|
||||
int trim;
|
||||
if (board == BOARD_STOCK || (board == BOARD_M128 && version >= 215))
|
||||
trim = ((trimBase[i]) << 2) + (trimExt[i] & 0x03);
|
||||
else
|
||||
trim = trimBase[i];
|
||||
if (trim > 500) {
|
||||
phase.trimRef[i] = trim - 501;
|
||||
if (phase.trimRef[i] >= index)
|
||||
phase.trimRef[i] += 1;
|
||||
if (phase.swtch == RawSwitch(SWITCH_TYPE_NONE)) {
|
||||
phase.trimRef[i] = 0;
|
||||
phase.trimMode[i] = 0;
|
||||
phase.trim[i] = 0;
|
||||
}
|
||||
else {
|
||||
phase.trimRef[i] = index;
|
||||
phase.trimMode[i] = 0;
|
||||
phase.trim[i] = trim;
|
||||
int trim;
|
||||
if (board == BOARD_STOCK || (board == BOARD_M128 && version >= 215))
|
||||
trim = ((trimBase[i]) << 2) + (trimExt[i] & 0x03);
|
||||
else
|
||||
trim = trimBase[i];
|
||||
if (trim > 500) {
|
||||
phase.trimRef[i] = trim - 501;
|
||||
if (phase.trimRef[i] >= index)
|
||||
phase.trimRef[i] += 1;
|
||||
phase.trimMode[i] = 0;
|
||||
phase.trim[i] = 0;
|
||||
}
|
||||
else {
|
||||
phase.trimRef[i] = index/*own trim*/;
|
||||
phase.trimMode[i] = 0;
|
||||
phase.trim[i] = trim;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -581,8 +581,6 @@ int OpenTxInterface::getCapability(const Capability capability)
|
||||
return (IS_ARM(board) ? 23 : 7);
|
||||
case HasSoundMixer:
|
||||
return (IS_ARM(board) ? 1 : 0);
|
||||
case ExtraChannels:
|
||||
return 0;
|
||||
case ExtraInputs:
|
||||
return 1;
|
||||
case ExtendedTrims:
|
||||
|
||||
@@ -159,8 +159,6 @@ int Th9xInterface::getCapability(const Capability capability)
|
||||
return TH9X_MAX_SWITCHES;
|
||||
case Outputs:
|
||||
return 8;
|
||||
case ExtraChannels:
|
||||
return 4;
|
||||
case OffsetWeight:
|
||||
return 125;
|
||||
case Simulation:
|
||||
|
||||
Reference in New Issue
Block a user