simulator: fix CANParser input args (#29343)

* we weren't testing?

* fix
pull/29347/head
Shane Smiskol 2 years ago committed by GitHub
parent aeece52a06
commit 84fbf1c2e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      tools/sim/lib/can.py

@ -11,19 +11,12 @@ rpacker = CANPacker("acura_ilx_2016_nidec")
def get_car_can_parser():
dbc_f = 'honda_civic_touring_2016_can_generated'
signals = [
("STEER_TORQUE", 0xe4),
("STEER_TORQUE_REQUEST", 0xe4),
("COMPUTER_BRAKE", 0x1fa),
("COMPUTER_BRAKE_REQUEST", 0x1fa),
("GAS_COMMAND", 0x200),
]
checks = [
(0xe4, 100),
(0x1fa, 50),
(0x200, 50),
]
return CANParser(dbc_f, signals, checks, 0)
return CANParser(dbc_f, checks, 0)
cp = get_car_can_parser()
def can_function(pm, speed, angle, idx, cruise_button, is_engaged):

Loading…
Cancel
Save