[TIZI/TICI] ui: fix developer UI crash on renamed field (#1910)

ui: fix developer UI crash on renamed lateralTorqueParameters valid field
This commit is contained in:
Jason Wen
2026-08-15 19:34:50 -04:00
committed by GitHub
parent d48cfa730b
commit 73fc740831
@@ -252,7 +252,7 @@ class FrictionCoefficientElement:
ltp = sm['lateralTorqueParameters']
value = f"{ltp.frictionCoefficientFiltered:.3f}"
color = rl.Color(0, 255, 0, 255) if ltp.liveValid else rl.WHITE
color = rl.Color(0, 255, 0, 255) if ltp.valid else rl.WHITE
return UiElement(value, "FRIC.", self.unit, color)
@@ -266,7 +266,7 @@ class LatAccelFactorElement:
ltp = sm['lateralTorqueParameters']
value = f"{ltp.latAccelFactorFiltered:.3f}"
color = rl.Color(0, 255, 0, 255) if ltp.liveValid else rl.WHITE
color = rl.Color(0, 255, 0, 255) if ltp.valid else rl.WHITE
return UiElement(value, "L.A.F.", self.unit, color)