Bsongis/x7d companion support (#4028)

[X7D] Companion support added
This commit is contained in:
Bertrand Songis
2016-11-16 12:59:15 +01:00
committed by GitHub
parent 4dda2c64d3
commit fb27acf286
22 changed files with 314 additions and 266 deletions
+4 -2
View File
@@ -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
+1 -1
View File
@@ -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