|
|
@ -187,9 +187,9 @@ def below_steer_speed_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: |
|
|
|
speed = int(round(CP.minSteerSpeed * (CV.MS_TO_KPH if metric else CV.MS_TO_MPH))) |
|
|
|
speed = int(round(CP.minSteerSpeed * (CV.MS_TO_KPH if metric else CV.MS_TO_MPH))) |
|
|
|
unit = "km/h" if metric else "mph" |
|
|
|
unit = "km/h" if metric else "mph" |
|
|
|
return Alert( |
|
|
|
return Alert( |
|
|
|
"TAKE CONTROL", |
|
|
|
|
|
|
|
"Steer Unavailable Below %d %s" % (speed, unit), |
|
|
|
"Steer Unavailable Below %d %s" % (speed, unit), |
|
|
|
AlertStatus.userPrompt, AlertSize.mid, |
|
|
|
"", |
|
|
|
|
|
|
|
AlertStatus.userPrompt, AlertSize.small, |
|
|
|
Priority.MID, VisualAlert.steerRequired, AudibleAlert.chimePrompt, 0., 0.4, .3) |
|
|
|
Priority.MID, VisualAlert.steerRequired, AudibleAlert.chimePrompt, 0., 0.4, .3) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|