add 'remount device' to permanent calibration invalid alert (#27407)

old-commit-hash: ea419c5764739555673d5545f16cff7c05f9e6c0
This commit is contained in:
Adeeb Shihadeh
2023-02-20 16:29:17 -08:00
committed by GitHub
parent 3aad76f8fd
commit 0a1ee30b15
+1 -1
View File
@@ -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)