From 78ddf8ba443385219f3758dd36660d9274f2893c Mon Sep 17 00:00:00 2001 From: "Mr.one" Date: Mon, 12 May 2025 19:40:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91events.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/selfdrived/events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/selfdrived/events.py b/selfdrive/selfdrived/events.py index 9bec9040..3b71047d 100755 --- a/selfdrive/selfdrived/events.py +++ b/selfdrive/selfdrived/events.py @@ -244,9 +244,9 @@ def below_steer_speed_alert(CP: car.CarParams, CS: car.CarState, sm: messaging.S def calibration_incomplete_alert(CP: car.CarParams, CS: car.CarState, sm: messaging.SubMaster, metric: bool, soft_disable_time: int, personality) -> Alert: - first_word = '重新校准' if sm['liveCalibration'].calStatus == log.LiveCalibrationData.Status.recalibrating else '中' + first_word = '重新校准' if sm['liveCalibration'].calStatus == log.LiveCalibrationData.Status.recalibrating else '自动校准' return Alert( - f"{first_word} 中: {sm['liveCalibration'].calPerc:.0f}%", + f"{first_word} : {sm['liveCalibration'].calPerc:.0f}%", f"请保持车速高于 {get_display_speed(MIN_SPEED_FILTER, metric)}", AlertStatus.normal, AlertSize.mid, Priority.LOWEST, VisualAlert.none, AudibleAlert.none, .2)