ui: fix developer UI crash - lateralTorqueParameters field renamed liveValid to valid

This commit is contained in:
Comma Device
2026-08-15 09:03:41 +00:00
parent 9522f7bf01
commit 41164932af
@@ -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)