mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-30 11:23:44 +08:00
回傳指紋到 sentry.io
This commit is contained in:
@@ -7,6 +7,7 @@ from common.fingerprints import eliminate_incompatible_cars, all_known_cars
|
||||
from selfdrive.swaglog import cloudlog
|
||||
import selfdrive.messaging as messaging
|
||||
import pickle
|
||||
import selfdrive.crash as crash
|
||||
|
||||
|
||||
def get_startup_alert(car_recognized, controller_available):
|
||||
@@ -140,6 +141,12 @@ def get_car(logcan, sendcan, is_panda_black=False):
|
||||
if candidate is None:
|
||||
cloudlog.warning("car doesn't match any fingerprints: %r", fingerprints)
|
||||
candidate = "mock"
|
||||
else:
|
||||
cloudlog.warning("car does match fingerprint: %r", fingerprints)
|
||||
try:
|
||||
crash.capture_warning("fingerprinted %s" % candidate)
|
||||
except: # fixes occasional travis errors
|
||||
pass
|
||||
|
||||
CarInterface, CarController = interfaces[candidate]
|
||||
car_params = CarInterface.get_params(candidate, fingerprints[0], vin, is_panda_black)
|
||||
|
||||
Reference in New Issue
Block a user