FrSky flash saving (64bytes)

Condensed display of Mixers lines in MIXER menu (by Max)
MOD_EXTRA_ROTARY_ENCODERS added (by Max): on v4.1 it adds the support of an extension board for 3 more rotary encoders
This commit is contained in:
bsongis
2012-04-11 18:38:59 +00:00
parent 9de279b819
commit ddcf6db9f7
9 changed files with 97 additions and 36 deletions
+11 -3
View File
@@ -386,13 +386,21 @@ PACK(typedef struct t_SwashRingData { // Swash Ring data
#define TRIM_MIN (-TRIM_MAX)
#if defined(PCBV4)
#define NUM_ROTARY_ENCODERS 2
#if defined(MOD_EXTRA_ROTARY_ENCODERS)
#define NUM_EXTRA_ROTARY_ENCODERS 3
#define VPOT_STEP 5
#define VPOT_MAX 1000
#define VPOT_MIN -VPOT_MAX
#else //MOD_EXTRA_ROTARY_ENCODERS
#define NUM_EXTRA_ROTARY_ENCODERS 3
#endif //MOD_EXTRA_ROTARY_ENCODERS
#define NUM_ROTARY_ENCODERS (2+NUM_EXTRA_ROTARY_ENCODERS)
#define ROTARY_ENCODER_MAX 1024
#define ROTARY_ENCODER_ARRAY int16_t rotaryEncoders[NUM_ROTARY_ENCODERS];
#else
#else //PCBV4
#define NUM_ROTARY_ENCODERS 0
#define ROTARY_ENCODER_ARRAY
#endif
#endif //PCBV4
PACK(typedef struct t_PhaseData {