[Companion] Old EEPROM support removed
This commit is contained in:
@@ -29,15 +29,15 @@ telemetryStreaming = 20;
|
||||
|
||||
#ifdef SETVALUES_IMPORT
|
||||
#undef SETVALUES_IMPORT
|
||||
for (int i=0; i<NUM_STICKS; i++)
|
||||
for (int i=0; i<CPN_MAX_STICKS; i++)
|
||||
g_anas[i] = inputs.sticks[i];
|
||||
for (int i=0; i<NUM_POTS+NUM_SLIDERS; i++)
|
||||
g_anas[NUM_STICKS+i] = inputs.pots[i];
|
||||
for (int i=0; i<C9X_NUM_SWITCHES; i++)
|
||||
g_anas[CPN_MAX_STICKS+i] = inputs.pots[i];
|
||||
for (int i=0; i<CPN_MAX_SWITCHES; i++)
|
||||
simuSetSwitch(i, inputs.switches[i]);
|
||||
for (int i=0; i<C9X_NUM_KEYS; i++)
|
||||
for (int i=0; i<CPN_MAX_KEYS; i++)
|
||||
simuSetKey(i, inputs.keys[i]);
|
||||
for (int i=0; i<(NUM_STICKS+NUM_AUX_TRIMS)*2; i++)
|
||||
for (int i=0; i<(CPN_MAX_STICKS+NUM_AUX_TRIMS)*2; i++)
|
||||
simuSetTrim(i, inputs.trims[i]);
|
||||
|
||||
#ifdef PCBGRUVIN9X
|
||||
|
||||
@@ -29,10 +29,10 @@ template<class t> t LIMIT(t mi, t x, t ma) { return std::min(std::max(mi, x), ma
|
||||
|
||||
struct TxInputs
|
||||
{
|
||||
int sticks[NUM_STICKS]; /* lh lv rv rh */
|
||||
int pots[C9X_NUM_POTS];
|
||||
int switches[C9X_NUM_SWITCHES];
|
||||
bool keys[C9X_NUM_KEYS];
|
||||
int sticks[CPN_MAX_STICKS]; /* lh lv rv rh */
|
||||
int pots[CPN_MAX_POTS];
|
||||
int switches[CPN_MAX_SWITCHES];
|
||||
bool keys[CPN_MAX_KEYS];
|
||||
bool rotenc;
|
||||
bool trims[12];
|
||||
};
|
||||
@@ -41,16 +41,16 @@ class TxOutputs
|
||||
{
|
||||
public:
|
||||
TxOutputs() { memset(this, 0, sizeof(TxOutputs)); }
|
||||
int chans[C9X_NUM_CHNOUT];
|
||||
bool vsw[C9X_NUM_CSW];
|
||||
int gvars[C9X_MAX_FLIGHT_MODES][C9X_MAX_GVARS];
|
||||
int chans[CPN_MAX_CHNOUT];
|
||||
bool vsw[CPN_MAX_CSW];
|
||||
int gvars[CPN_MAX_FLIGHT_MODES][CPN_MAX_GVARS];
|
||||
unsigned int beep;
|
||||
// uint8_t phase;
|
||||
};
|
||||
|
||||
struct Trims
|
||||
{
|
||||
int values[NUM_STICKS]; /* lh lv rv rh */
|
||||
int values[CPN_MAX_STICKS]; /* lh lv rv rh */
|
||||
bool extended;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user