Very weak filter added to instantaneous MAP readings
This commit is contained in:
parent
667e80dc26
commit
91512b775a
|
@ -6,8 +6,9 @@
|
|||
#define ADCFILTER_TPS 128
|
||||
#define ADCFILTER_CLT 180
|
||||
#define ADCFILTER_IAT 180
|
||||
#define ADCFILTER_O2 128
|
||||
#define ADCFILTER_O2 128
|
||||
#define ADCFILTER_BAT 128
|
||||
#define ADCFILTER_MAP 20 //This is only used on Instantaneous MAP readings and is intentionally very weak to allow for faster response
|
||||
|
||||
#define BARO_MIN 87
|
||||
#define BARO_MAX 108
|
||||
|
|
|
@ -58,8 +58,10 @@ void instanteneousMAPReading()
|
|||
#endif
|
||||
//Error checking
|
||||
if(tempReading >= VALID_MAP_MAX || tempReading <= VALID_MAP_MIN) { mapErrorCount += 1; }
|
||||
else { currentStatus.mapADC = tempReading; mapErrorCount = 0; }
|
||||
else { mapErrorCount = 0; }
|
||||
|
||||
currentStatus.mapADC = ADC_FILTER(tempReading, ADCFILTER_MAP, currentStatus.mapADC); //Very weak filter
|
||||
|
||||
currentStatus.MAP = fastMap1023toX(currentStatus.mapADC, configPage1.mapMax); //Get the current MAP value
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue