@@ -241,7 +241,7 @@ class OpenTxSimulatorFactory: public SimulatorFactory
|
||||
{
|
||||
}
|
||||
|
||||
virtual SimulatorInterface *create()
|
||||
virtual SimulatorInterface * create()
|
||||
{
|
||||
return new OpenTxSimulator();
|
||||
}
|
||||
@@ -257,8 +257,10 @@ class OpenTxSimulatorFactory: public SimulatorFactory
|
||||
return BOARD_HORUS;
|
||||
#elif defined(PCBFLAMENCO)
|
||||
return BOARD_FLAMENCO;
|
||||
#elif defined(PCBX7D)
|
||||
return BOARD_X7D;
|
||||
#elif defined(PCBTARANIS)
|
||||
return BOARD_TARANIS;
|
||||
return BOARD_TARANIS_X9D;
|
||||
#else
|
||||
return BOARD_STOCK;
|
||||
#endif
|
||||
|
||||
@@ -376,7 +376,7 @@ enum Analogs {
|
||||
NUMBER_ANALOG
|
||||
};
|
||||
#define NUM_POTS (POT_LAST-POT_FIRST+1)
|
||||
#define NUM_SLIDERS (TX_VOLTAGE-POT_FIRST-NUM_POTS)
|
||||
#define NUM_SLIDERS (TX_VOLTAGE-POT_LAST-1)
|
||||
#define NUM_XPOTS NUM_POTS
|
||||
#if defined(PCBX9D)
|
||||
#define IS_POT(x) ((x)>=POT_FIRST && (x)<=POT2) // POT3 is only defined in software
|
||||
|
||||
Reference in New Issue
Block a user