steps towards ECU

This commit is contained in:
rusefillc 2023-01-10 10:50:48 -05:00
parent 9d4149721b
commit 988d233b82
2 changed files with 6 additions and 4 deletions

View File

@ -269,9 +269,9 @@ canRxAdd(ECU_BUS, MOTOR_1, onMotor1)
canRxAdd(ECU_BUS, MOTOR_BRE, onMotorBre)
canRxAdd(ECU_BUS, MOTOR_2, onMotor2)
canRxAdd(ECU_BUS, MOTOR_3, onMotor3)
canRxAdd(ECU_BUS, MOTOR_5, onMotor5)
--canRxAdd(ECU_BUS, MOTOR_5, onMotor5)
canRxAdd(ECU_BUS, MOTOR_INFO, onMotorInfo)
canRxAdd(ECU_BUS, MOTOR_6, onMotor6)
--canRxAdd(ECU_BUS, MOTOR_6, onMotor6)
--canRxAdd(ECU_BUS, MOTOR_7, onMotor7)
canRxAdd(ECU_BUS, ACC_GRA, onAccGra)
@ -287,6 +287,8 @@ function onTick()
-- print(freqValue .. " mafValue=" .. mafValue)
-- mafSensor : set(mafValue)
onMotor5(0, 0, 0, nil)
onMotor6(0, 0, 0, nil)
onMotor7(0, 0, 0, nil)

View File

@ -283,9 +283,9 @@ mafCalibrationIndex = findCurveIndex("mafcurve")
function onTick()
freqValue = getSensor("AuxSpeed1") or 0
mafValue = curve(mafCalibrationIndex, 5)
-- mafValue = curve(mafCalibrationIndex, 5)
-- print(freqValue .. " mafValue=" .. mafValue)
mafSensor : set(mafValue)
-- mafSensor : set(mafValue)
if everySecondTimer : getElapsedSeconds() > 1 then
everySecondTimer : reset()