ui: fix developer UI crash on renamed lateralTorqueParameters valid field

This commit is contained in:
Jason Wen
2026-08-15 18:41:16 -04:00
parent d48cfa730b
commit efac391cb7
@@ -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)