Skip to content

Commit

Permalink
Added a generic speed in the base data container.
Browse files Browse the repository at this point in the history
Added speed trend functionality.
  • Loading branch information
ATATC committed Feb 15, 2024
1 parent 4cf2035 commit 865213b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leads_vec/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def on_update(self, e: UpdateEvent) -> None:
elif uim.rd().m3_mode == 1:
m3.set("G Force")
else:
m3.set("Speed Trend\n" + str(ctx.get_speed_trend()))
m3.set(f"Speed Trend\n{int(st := ctx.get_speed_trend())} {'↑' if st > 0 else '↓'}")
if uim.rd().comm.num_connections() < 1:
uim["comm_status"].configure(text="COMM OFFLINE", text_color="gray")
if uim.rd().control_system_switch_changed:
Expand Down

0 comments on commit 865213b

Please sign in to comment.