Skip to content

Commit

Permalink
Added a fault light system. (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Feb 22, 2024
1 parent ea765e6 commit a5801c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion leads_gui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, base: dict[str, _Any]) -> None:
self.no_title_bar: bool = False
self.manual_mode: bool = False
self.refresh_rate: int = 30
self.font_size_small: int = 12
self.font_size_small: int = 14
self.font_size_medium: int = 24
self.font_size_large: int = 40
self.font_size_x_large: int = 56
Expand Down
5 changes: 3 additions & 2 deletions leads_vec/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def switch_ecs_mode(mode):
selected_hover_color=c)

manager["ecs"] = CTkSegmentedButton(manager.root(), values=["STANDARD", "AGGRESSIVE", "SPORT"],
variable=ecs, command=switch_ecs_mode)
variable=ecs, command=switch_ecs_mode, font=("Arial", cfg.font_size_small))

uim = initialize(window, render, ctx, get_controller(MAIN_CONTROLLER))

Expand Down Expand Up @@ -149,7 +149,8 @@ def post_suspend(self, e: SuspensionEvent) -> None:
["m1", "m2", "m3"],
["dtcs_status", "abs_status", "ebi_status", "atbs_status", "comm_status"],
list(map(lambda s: s.lower(), SystemLiteral)),
["record_lap", "ecs"]
["record_lap", "ecs"],
[CTkLabel(uim.root(), image=WheelSpeed, text="")]
]
uim.layout(layout)
placeholder_row = len(layout)
Expand Down

0 comments on commit a5801c6

Please sign in to comment.