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

old-commit-hash: ea419c5764
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent 3aad76f8fd
commit 0a1ee30b15
  1. 2
      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)

Loading…
Cancel
Save