Qt onroad alerts (#20776)

old-commit-hash: f9072199571742f9e349990bb58540401a863f67
This commit is contained in:
Adeeb Shihadeh
2021-05-04 23:23:00 -07:00
committed by GitHub
parent 03f823a3fc
commit 5d82a760db
12 changed files with 256 additions and 195 deletions
+4 -3
View File
@@ -13,13 +13,14 @@ from selfdrive.controls.lib.alertmanager import AlertManager
EventName = car.CarEvent.EventName
def cycle_alerts(duration=200, is_metric=False):
def cycle_alerts(duration=2000, is_metric=False):
alerts = list(EVENTS.keys())
print(alerts)
alerts = [EventName.preDriverDistracted, EventName.promptDriverDistracted, EventName.driverDistracted]
#alerts = [EventName.preDriverDistracted, EventName.promptDriverDistracted, EventName.driverDistracted]
alerts = [EventName.preLaneChangeLeft, EventName.preLaneChangeRight]
CP = CarInterface.get_params("HONDA CIVIC 2016 TOURING")
CP = CarInterface.get_params("HONDA CIVIC 2016")
sm = messaging.SubMaster(['deviceState', 'pandaState', 'roadCameraState', 'modelV2', 'liveCalibration',
'driverMonitoringState', 'longitudinalPlan', 'lateralPlan', 'liveLocationKalman'])