Some files forgotten
This commit is contained in:
@@ -410,9 +410,9 @@ t_Open9xGruvin9xCustomFunctionData_v210::operator CustomFunctionData ()
|
||||
t_Open9xGruvin9xSwashRingData_v208::operator SwashRingData ()
|
||||
{
|
||||
SwashRingData c9x;
|
||||
c9x.invertELE = invertELE;
|
||||
c9x.invertAIL = invertAIL;
|
||||
c9x.invertCOL = invertCOL;
|
||||
c9x.elevatorWeight = invertELE ? -100 : 100;
|
||||
c9x.aileronWeight = invertAIL ? -100 : 100;
|
||||
c9x.collectiveWeight = invertCOL ? -100 : 100;
|
||||
c9x.type = type;
|
||||
c9x.collectiveSource = open9xV4207ToSource(collectiveSource);
|
||||
c9x.value = value;
|
||||
@@ -422,9 +422,9 @@ t_Open9xGruvin9xSwashRingData_v208::operator SwashRingData ()
|
||||
t_Open9xGruvin9xSwashRingData_v209::operator SwashRingData ()
|
||||
{
|
||||
SwashRingData c9x;
|
||||
c9x.invertELE = invertELE;
|
||||
c9x.invertAIL = invertAIL;
|
||||
c9x.invertCOL = invertCOL;
|
||||
c9x.elevatorWeight = invertELE ? -100 : 100;
|
||||
c9x.aileronWeight = invertAIL ? -100 : 100;
|
||||
c9x.collectiveWeight = invertCOL ? -100 : 100;
|
||||
c9x.type = type;
|
||||
c9x.collectiveSource = open9xV4209ToSource(collectiveSource);
|
||||
c9x.value = value;
|
||||
|
||||
@@ -640,9 +640,9 @@ t_Open9xArmCustomFunctionData_v211::operator CustomFunctionData ()
|
||||
t_Open9xArmSwashRingData_v208::operator SwashRingData ()
|
||||
{
|
||||
SwashRingData c9x;
|
||||
c9x.invertELE = invertELE;
|
||||
c9x.invertAIL = invertAIL;
|
||||
c9x.invertCOL = invertCOL;
|
||||
c9x.elevatorWeight = invertELE ? -100 : 100;
|
||||
c9x.aileronWeight = invertAIL ? -100 : 100;
|
||||
c9x.collectiveWeight = invertCOL ? -100 : 100;
|
||||
c9x.type = type;
|
||||
c9x.collectiveSource = open9xArm208ToSource(collectiveSource);
|
||||
c9x.value = value;
|
||||
@@ -652,9 +652,9 @@ t_Open9xArmSwashRingData_v208::operator SwashRingData ()
|
||||
t_Open9xArmSwashRingData_v209::operator SwashRingData ()
|
||||
{
|
||||
SwashRingData c9x;
|
||||
c9x.invertELE = invertELE;
|
||||
c9x.invertAIL = invertAIL;
|
||||
c9x.invertCOL = invertCOL;
|
||||
c9x.elevatorWeight = invertELE ? -100 : 100;
|
||||
c9x.aileronWeight = invertAIL ? -100 : 100;
|
||||
c9x.collectiveWeight = invertCOL ? -100 : 100;
|
||||
c9x.type = type;
|
||||
c9x.collectiveSource = open9xArm209ToSource(collectiveSource);
|
||||
c9x.value = value;
|
||||
@@ -664,9 +664,9 @@ t_Open9xArmSwashRingData_v209::operator SwashRingData ()
|
||||
t_Open9xArmSwashRingData_v210::operator SwashRingData ()
|
||||
{
|
||||
SwashRingData c9x;
|
||||
c9x.invertELE = invertELE;
|
||||
c9x.invertAIL = invertAIL;
|
||||
c9x.invertCOL = invertCOL;
|
||||
c9x.elevatorWeight = invertELE ? -100 : 100;
|
||||
c9x.aileronWeight = invertAIL ? -100 : 100;
|
||||
c9x.collectiveWeight = invertCOL ? -100 : 100;
|
||||
c9x.type = type;
|
||||
c9x.collectiveSource = open9xArm210ToSource(collectiveSource);
|
||||
c9x.value = value;
|
||||
|
||||
@@ -665,9 +665,9 @@ t_Open9xCustomFunctionData_v210::operator CustomFunctionData ()
|
||||
t_Open9xSwashRingData_v208::operator SwashRingData ()
|
||||
{
|
||||
SwashRingData c9x;
|
||||
c9x.invertELE = invertELE;
|
||||
c9x.invertAIL = invertAIL;
|
||||
c9x.invertCOL = invertCOL;
|
||||
c9x.elevatorWeight = invertELE ? -100 : 100;
|
||||
c9x.aileronWeight = invertAIL ? -100 : 100;
|
||||
c9x.collectiveWeight = invertCOL ? -100 : 100;
|
||||
c9x.type = type;
|
||||
c9x.collectiveSource = open9x208ToSource(collectiveSource);
|
||||
c9x.value = value;
|
||||
@@ -677,9 +677,9 @@ t_Open9xSwashRingData_v208::operator SwashRingData ()
|
||||
t_Open9xSwashRingData_v209::operator SwashRingData ()
|
||||
{
|
||||
SwashRingData c9x;
|
||||
c9x.invertELE = invertELE;
|
||||
c9x.invertAIL = invertAIL;
|
||||
c9x.invertCOL = invertCOL;
|
||||
c9x.elevatorWeight = invertELE ? -100 : 100;
|
||||
c9x.aileronWeight = invertAIL ? -100 : 100;
|
||||
c9x.collectiveWeight = invertCOL ? -100 : 100;
|
||||
c9x.type = type;
|
||||
c9x.collectiveSource = open9xStock209ToSource(collectiveSource);
|
||||
c9x.value = value;
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
#define FRSKY_STICKS
|
||||
#define OVERRIDE_CHANNEL_FUNCTION
|
||||
#define TIMERS 2
|
||||
#define THRTRACE
|
||||
|
||||
#define FLAVOUR "gruvin9x"
|
||||
#define EEPROM_VARIANT 3
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
#define OVERRIDE_CHANNEL_FUNCTION
|
||||
#define TIMERS 2
|
||||
#define GAUGES
|
||||
#define THRTRACE
|
||||
|
||||
#define FLAVOUR "9x128"
|
||||
#define EEPROM_VARIANT SIMU_M128_VARIANTS
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
#define GAUGES
|
||||
#define TIMERS 2
|
||||
#define NUM_POTS 3
|
||||
#define THRTRACE
|
||||
|
||||
#define FLAVOUR "9x"
|
||||
#define EEPROM_VARIANT SIMU_STOCK_VARIANTS
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
#define OVERRIDE_CHANNEL_FUNCTION
|
||||
#define NUM_POTS 3
|
||||
#define TIMERS 2
|
||||
#define THRTRACE
|
||||
|
||||
#define EEPROM_VARIANT 3
|
||||
#define FLAVOUR "sky9x"
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
#define REVPLUS
|
||||
#define OVERRIDE_CHANNEL_FUNCTION
|
||||
#define TIMERS 3
|
||||
#define THRTRACE
|
||||
|
||||
#define EEPROM_VARIANT 3
|
||||
#define FLAVOUR "taranis-plus"
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
#define REV9E
|
||||
#define OVERRIDE_CHANNEL_FUNCTION
|
||||
#define TIMERS 3
|
||||
#define THRTRACE
|
||||
|
||||
#define EEPROM_VARIANT 3
|
||||
#define FLAVOUR "taranis-x9e"
|
||||
|
||||
@@ -725,18 +725,33 @@ class HeliField: public StructField {
|
||||
public:
|
||||
HeliField(SwashRingData & heli, BoardEnum board, unsigned int version, unsigned int variant)
|
||||
{
|
||||
Append(new BoolField<1>(heli.invertELE));
|
||||
Append(new BoolField<1>(heli.invertAIL));
|
||||
Append(new BoolField<1>(heli.invertCOL));
|
||||
Append(new UnsignedField<5>(heli.type));
|
||||
Append(new SourceField<8>(heli.collectiveSource, board, version, variant));
|
||||
if (IS_TARANIS(board) && version >= 217) {
|
||||
Append(new UnsignedField<8>(heli.type));
|
||||
Append(new UnsignedField<8>(heli.value));
|
||||
Append(new SourceField<8>(heli.collectiveSource, board, version, variant));
|
||||
Append(new SourceField<8>(heli.aileronSource, board, version, variant));
|
||||
Append(new SourceField<8>(heli.elevatorSource, board, version, variant));
|
||||
Append(new SignedField<8>(heli.collectiveWeight));
|
||||
Append(new SignedField<8>(heli.aileronWeight));
|
||||
Append(new SignedField<8>(heli.elevatorWeight));
|
||||
}
|
||||
else {
|
||||
Append(new BoolField<1>(invertELE));
|
||||
Append(new BoolField<1>(invertAIL));
|
||||
Append(new BoolField<1>(invertCOL));
|
||||
Append(new UnsignedField<5>(heli.type));
|
||||
Append(new SourceField<8>(heli.collectiveSource, board, version, variant));
|
||||
//, FLAG_NOSWITCHES)); Fix shift in collective
|
||||
Append(new UnsignedField<8>(heli.value));
|
||||
}
|
||||
//, FLAG_NOSWITCHES)); Fix shift in collective
|
||||
Append(new UnsignedField<8>(heli.value));
|
||||
}
|
||||
|
||||
// TODO before + after
|
||||
|
||||
protected:
|
||||
bool invertELE;
|
||||
bool invertAIL;
|
||||
bool invertCOL;
|
||||
};
|
||||
|
||||
class FlightModeField: public TransformedField {
|
||||
|
||||
Reference in New Issue
Block a user