Nissan MAF

This commit is contained in:
rusefillc 2022-11-09 22:09:23 -05:00
parent 7dc36285c4
commit 6e5f38d035
1 changed files with 7 additions and 9 deletions

View File

@ -1,22 +1,20 @@
#include "pch.h"
static int addMafPoint(persistent_config_s *e, int i, float kgHrValue, float voltage) {
e->mafDecoding[i] = kgHrValue;
e->mafDecodingBins[i] = voltage;
return i + 1;
}
static void fillTheRest(persistent_config_s *e, int i) {
/**
* unrealistic values just to make binary search happy
*/
while (i < MAF_DECODING_COUNT) {
e->mafDecoding[i] = 200;
e->mafDecodingBins[i] = 10 + i;
i++;
i = addMafPoint(e, i, 3000, 2010 + i);
}
}
static int addMafPoint(persistent_config_s *e, int i, float kgHrValue, float voltage) {
e->mafDecoding[i] = kgHrValue;
e->mafDecodingBins[i] = voltage;
return i + 1;
}
/**
* Hot-film air-mass meter, Type HFM 5
*/