cleanup pedal crc

old-commit-hash: 23e8ad73979735479131dfb303e249b861829468
This commit is contained in:
Adeeb Shihadeh
2024-03-20 10:35:33 -07:00
parent 53c7f5aaab
commit fcbce3d8f6
2 changed files with 0 additions and 17 deletions
-3
View File
@@ -4,7 +4,6 @@ from opendbc.can.packer import CANPacker
from opendbc.can.parser import CANParser
from openpilot.common.params import Params
from openpilot.selfdrive.boardd.boardd_api_impl import can_list_to_can_capnp
from openpilot.selfdrive.car import crc8_pedal
from openpilot.tools.sim.lib.common import SimulatorState
@@ -55,8 +54,6 @@ class SimulatedCar:
"INTERCEPTOR_GAS": simulator_state.user_gas * 2**12,
"INTERCEPTOR_GAS2": simulator_state.user_gas * 2**12,
}
checksum = crc8_pedal(self.packer.make_can_msg("GAS_SENSOR", 0, values)[2][:-1])
values["CHECKSUM_PEDAL"] = checksum
msg.append(self.packer.make_can_msg("GAS_SENSOR", 0, values))
msg.append(self.packer.make_can_msg("GEARBOX", 0, {"GEAR": 4, "GEAR_SHIFTER": 8}))