Clean up PWM stick reads, remove double averaging (#5995)

We already do averaging in the normal anaIn/getADC().
Also according to Mike's and my own research we don't need the averaging.

Tested on two X-Lites with PMW sticks
This commit is contained in:
Arne Schwabe
2018-06-27 16:10:27 +02:00
committed by Bertrand Songis
parent 17b4aa2466
commit 968e7233e5
3 changed files with 15 additions and 36 deletions
+1 -1
View File
@@ -409,7 +409,7 @@ uint16_t getAnalogValue(uint8_t index);
#endif
#if NUM_PWMSTICKS > 0
extern uint8_t sticks_pwm_disabled;
extern bool sticks_pwm_disabled;
#define STICKS_PWM_ENABLED() (sticks_pwm_disabled == false)
void sticksPwmInit(void);
void sticksPwmRead(uint16_t * values);