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
@@ -445,7 +445,7 @@ enum Analogs {
#if defined(PCBXLITE)
#define NUM_PWMSTICKS 4
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);