This commit is contained in:
rusefillc 2023-01-11 01:37:50 -05:00
parent 3f1284b25f
commit 98920b5453
2 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,7 @@ function onMotor2(bus, id, dlc, data)
motor2counter = (motor2counter + 1) % 16
minTorque = fakeTorque / 2
-- todo: add CLT
motor2Data[7] = math.floor(minTorque / 0.39)
--print ( "brake " .. getBitRange(data, 16, 2) .. " " .. rpm)

View File

@ -173,6 +173,7 @@ function onMotor2(bus, id, dlc, data)
motor2counter = (motor2counter + 1) % 16
minTorque = fakeTorque / 2
-- todo: add CLT
motor2Data[7] = math.floor(minTorque / 0.39)
--print ( "brake " .. getBitRange(data, 16, 2) .. " " .. rpm)