From eadd5e53b23d61f51850569ed14ae6ab816eef84 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Thu, 17 Jul 2014 23:30:52 +1000 Subject: [PATCH] Appropriate MAP mapping for MPX4250 --- speeduino.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speeduino.ino b/speeduino.ino index 12c41a0..b4d779d 100644 --- a/speeduino.ino +++ b/speeduino.ino @@ -247,7 +247,7 @@ void loop() //***SET STATUSES*** //----------------------------------------------------------------------------------------------------- currentStatus.TPSlast = currentStatus.TPS; - currentStatus.MAP = fastMap(analogRead(pinMAP), 0, 1023, 0, 100); //Get the current MAP value + currentStatus.MAP = fastMap(analogRead(pinMAP), 0, 1023, 10, 260); //Get the current MAP value currentStatus.tpsADC = fastMap(analogRead(pinTPS), 0, 1023, 0, 255); //Get the current raw TPS ADC value and map it into a byte currentStatus.TPS = fastMap(currentStatus.tpsADC, configPage1.tpsMin, configPage1.tpsMax, 0, 100); //Take the raw TPS ADC value and convert it into a TPS% based on the calibrated values currentStatus.O2 = fastMap(analogRead(pinO2), 0, 1023, 117, 358); //Get the current O2 value. Calibration is from AFR values 7.35 to 22.4, then multiplied by 16 (<< 4). This is the correct calibration for an Innovate Wideband 0v - 5V unit