Updated B6 temp (markdown)

This commit is contained in:
rusefillc 2022-12-25 14:00:12 -05:00
parent 627d163a65
commit 2a3cee64f3
1 changed files with 10 additions and 0 deletions

View File

@ -185,7 +185,17 @@ canRxAddMask(TCU_BUS, 0, 0, onAnythingFromTCU)
everySecondTimer = Timer.new()
canMotorInfoCounter = 0
mafSensor = Sensor.new("maf")
mafCalibrationIndex = findCurveIndex("mafcurve")
function onTick()
freqValue = getSensor("AuxSpeed1") * 16 or 0
mafValue = curve(mafCalibrationIndex, 5)
-- print(freqValue .. " mafValue=" .. mafValue)
mafSensor : set(mafValue)
if everySecondTimer : getElapsedSeconds() > 1 then
everySecondTimer : reset()
print("Total from ECU " ..totalEcuMessages .." from TCU " ..totalTcuMessages)