mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-19 09:23:46 +08:00
[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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user