Bug fixes. Lipo full value adjustment. ECB setting for pinky key disabled extra controller.

This commit is contained in:
Johan Berglund 2021-01-28 06:27:21 +01:00
parent 4cb72f1112
commit 04191e064d
2 changed files with 2 additions and 1 deletions

View file

@ -1719,6 +1719,7 @@ void extraController() {
exSensor = exSensor * 0.6 + 0.4 * touchRead(extraPin); // get sensor data, do some smoothing - SENSOR PIN 16 - PCB PIN "EC" (marked K4 on some prototype boards) exSensor = exSensor * 0.6 + 0.4 * touchRead(extraPin); // get sensor data, do some smoothing - SENSOR PIN 16 - PCB PIN "EC" (marked K4 on some prototype boards)
exSensorIndicator = map(constrain(exSensor, extracThrVal, extracMaxVal), extracThrVal, extracMaxVal, 0, 127); exSensorIndicator = map(constrain(exSensor, extracThrVal, extracMaxVal), extracThrVal, extracMaxVal, 0, 127);
if (pinkySetting == EC2){ if (pinkySetting == EC2){
CC1sw = true;
//send 0 or 127 on extra controller CC2 depending on pinky key touch //send 0 or 127 on extra controller CC2 depending on pinky key touch
if (pinkyKey && extraCT2) { if (pinkyKey && extraCT2) {
if (lastPinkyKey != pinkyKey){ if (lastPinkyKey != pinkyKey){

View file

@ -47,7 +47,7 @@
#define ALK_BAT_FULL 2800 // about 4.6V #define ALK_BAT_FULL 2800 // about 4.6V
#define NMH_BAT_FULL 2380 // about 3.9V #define NMH_BAT_FULL 2380 // about 3.9V
#define LIP_BAT_FULL 2550 // about 4.2V #define LIP_BAT_FULL 2540 // about 4.2V
#define ALK_BAT_LOW 2300 // about 3.8V #define ALK_BAT_LOW 2300 // about 3.8V
#define NMH_BAT_LOW 2200 // about 3.6V #define NMH_BAT_LOW 2200 // about 3.6V
#define LIP_BAT_LOW 2250 // about 3.7V #define LIP_BAT_LOW 2250 // about 3.7V