Skip to content

Commit

Permalink
simulator: Remove comma pedal sensor (commaai#32030)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimi89999 authored Mar 27, 2024
1 parent 0a2a3df commit 1637265
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tools/sim/lib/simulated_car.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ def send_can_messages(self, simulator_state: SimulatorState):

msg.append(self.packer.make_can_msg("SCM_BUTTONS", 0, {"CRUISE_BUTTONS": simulator_state.cruise_button}))

values = {
"COUNTER_PEDAL": self.idx & 0xF,
"INTERCEPTOR_GAS": simulator_state.user_gas * 2**12,
"INTERCEPTOR_GAS2": simulator_state.user_gas * 2**12,
}
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}))
msg.append(self.packer.make_can_msg("GAS_PEDAL_2", 0, {}))
msg.append(self.packer.make_can_msg("SEATBELT_STATUS", 0, {"SEATBELT_DRIVER_LATCHED": 1}))
Expand Down

0 comments on commit 1637265

Please sign in to comment.