mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 10:32:10 +08:00
ignore IGNORED_FINGERPRINTS in fingerprint test
old-commit-hash: 6eca88e9bcc4c6d32304444c6565ca6be0d77bbb
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import os
|
||||
import sys
|
||||
from common.basedir import BASEDIR
|
||||
from selfdrive.car.fingerprints import IGNORED_FINGERPRINTS
|
||||
|
||||
# messages reserved for CAN based ignition (see can_ignition_hook function in panda/board/drivers/can)
|
||||
# (addr, len)
|
||||
@@ -65,6 +66,9 @@ car_names = []
|
||||
brand_names = []
|
||||
for brand in fingerprints:
|
||||
for car in fingerprints[brand]:
|
||||
if car in IGNORED_FINGERPRINTS:
|
||||
continue
|
||||
|
||||
fingerprints_flat += fingerprints[brand][car]
|
||||
for i in range(len(fingerprints[brand][car])):
|
||||
car_names.append(car)
|
||||
|
||||
Reference in New Issue
Block a user