Updated B6 temp (markdown)
This commit is contained in:
parent
627d163a65
commit
2a3cee64f3
10
B6-temp.md
10
B6-temp.md
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue