Closed DeeEmm closed 3 years ago
Have already updated MAF sensor and board voltage reference (#79). Need to roll out for remaining inputs prior to unit tests (#76)
Example conversion (from MAF sensor)
int mafFlowRaw = analogRead(MAF_PIN);
double mafMillivolts = (mafFlowRaw * (_hardware.getSupplyMillivolts() / 4095.0)) * 1000;
return mafMillivolts;
NOTE:
_hardware.getSupplyMillivolts()
References 3.3 volt supply and integrates supply fluctuations into sensor calculations.
4095 bit resolution = 12 bits
Remaining references to 10 bit / 5v replaced
Review all sensor inputs: