mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
simulator: fix CANParser input args (#29343)
* we weren't testing? * fix old-commit-hash: 84fbf1c2e92d2799f193213f71987f1d6e8b6431
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user