Fix faulty mapping on TPS
This commit is contained in:
parent
eae0faa904
commit
ade1b4d4b1
|
@ -342,7 +342,7 @@ void loop()
|
|||
currentStatus.TPSlast_time = currentStatus.TPS_time;
|
||||
int tpsTemp = analogRead(pinTPS);
|
||||
currentStatus.tpsADC = fastMap1023toX(tpsTemp, 0, 1023, 0, 255); //Get the current raw TPS ADC value and map it into a byte
|
||||
currentStatus.TPS = fastMap1023toX(tpsTemp, configPage1.tpsMin, configPage1.tpsMax, 0, 100); //Take the raw TPS ADC value and convert it into a TPS% based on the calibrated values
|
||||
currentStatus.TPS = map(tpsTemp, configPage1.tpsMin, configPage1.tpsMax, 0, 100); //Take the raw TPS ADC value and convert it into a TPS% based on the calibrated values
|
||||
currentStatus.TPS_time = currentLoopTime;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue