|
|
@ -176,7 +176,7 @@ class EngagementAlert(Alert): |
|
|
|
|
|
|
|
|
|
|
|
def below_steer_speed_alert(CP, sm, metric): |
|
|
|
def below_steer_speed_alert(CP, sm, 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 = "kph" if metric else "mph" |
|
|
|
unit = "km/h" if metric else "mph" |
|
|
|
return Alert( |
|
|
|
return Alert( |
|
|
|
"TAKE CONTROL", |
|
|
|
"TAKE CONTROL", |
|
|
|
"Steer Unavailable Below %d %s" % (speed, unit), |
|
|
|
"Steer Unavailable Below %d %s" % (speed, unit), |
|
|
@ -185,7 +185,7 @@ def below_steer_speed_alert(CP, sm, metric): |
|
|
|
|
|
|
|
|
|
|
|
def calibration_incomplete_alert(CP, sm, metric): |
|
|
|
def calibration_incomplete_alert(CP, sm, metric): |
|
|
|
speed = int(Filter.MIN_SPEED * (CV.MS_TO_KPH if metric else CV.MS_TO_MPH)) |
|
|
|
speed = int(Filter.MIN_SPEED * (CV.MS_TO_KPH if metric else CV.MS_TO_MPH)) |
|
|
|
unit = "kph" if metric else "mph" |
|
|
|
unit = "km/h" if metric else "mph" |
|
|
|
return Alert( |
|
|
|
return Alert( |
|
|
|
"Calibration in Progress: %d%%" % sm['liveCalibration'].calPerc, |
|
|
|
"Calibration in Progress: %d%%" % sm['liveCalibration'].calPerc, |
|
|
|
"Drive Above %d %s" % (speed, unit), |
|
|
|
"Drive Above %d %s" % (speed, unit), |
|
|
|