|
|
|
@ -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})) |
|
|
|
|