From 0a1ee30b1538c724ab356e1dea14feaf963ef5ed Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 20 Feb 2023 16:29:17 -0800 Subject: [PATCH] add 'remount device' to permanent calibration invalid alert (#27407) old-commit-hash: ea419c5764739555673d5545f16cff7c05f9e6c0 --- selfdrive/controls/lib/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/lib/events.py b/selfdrive/controls/lib/events.py index a85e48649f..4e664d8cf0 100644 --- a/selfdrive/controls/lib/events.py +++ b/selfdrive/controls/lib/events.py @@ -292,7 +292,7 @@ def calibration_invalid_alert(CP: car.CarParams, CS: car.CarState, sm: messaging rpy = sm['liveCalibration'].rpyCalib yaw = math.degrees(rpy[2] if len(rpy) == 3 else math.nan) pitch = math.degrees(rpy[1] if len(rpy) == 3 else math.nan) - angles = f"Pitch: {pitch:.1f}°, Yaw: {yaw:.1f}°" + angles = f"Remount Device (Pitch: {pitch:.1f}°, Yaw: {yaw:.1f}°)" return NormalPermanentAlert("Calibration Invalid", angles)