This commit is contained in:
parent
5a4d67954a
commit
0485ed05d3
|
@ -111,7 +111,7 @@ setTickRate(100)
|
||||||
everySecondTimer = Timer.new()
|
everySecondTimer = Timer.new()
|
||||||
canMotorInfoCounter = 0
|
canMotorInfoCounter = 0
|
||||||
|
|
||||||
counter = 0
|
counter16 = 0
|
||||||
|
|
||||||
mafSensor = Sensor.new("maf")
|
mafSensor = Sensor.new("maf")
|
||||||
mafCalibrationIndex = findCurveIndex("mafcurve")
|
mafCalibrationIndex = findCurveIndex("mafcurve")
|
||||||
|
@ -123,7 +123,7 @@ function onTick()
|
||||||
-- print(freqValue .. " mafValue=" .. mafValue)
|
-- print(freqValue .. " mafValue=" .. mafValue)
|
||||||
mafSensor : set(mafValue)
|
mafSensor : set(mafValue)
|
||||||
|
|
||||||
counter = (counter + 1) % 16
|
counter16 = (counter16 + 1) % 16
|
||||||
|
|
||||||
rpm = getSensor("RPM") or 0
|
rpm = getSensor("RPM") or 0
|
||||||
clt = getSensor("CLT") or 0
|
clt = getSensor("CLT") or 0
|
||||||
|
|
Loading…
Reference in New Issue