Skip to content

Commit

Permalink
Slowed down the speed refresh rate.
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Dec 30, 2023
1 parent 7a33614 commit 59b408d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion leads_vec/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def on_update(self, e: UpdateEvent) -> None:
f"{duration // 60} MIN {duration % 60} SEC\n\n"
f"{'SRW MODE' if config.srw_mode else 'DRW MODE'}\n"
f"REFRESH RATE: {config.refresh_rate} FPS")
uim["m2"].update(f"{int(context.data().front_wheel_speed)}")
if uim.rd().frame_counter % int(config.refresh_rate / 4) == 0:
uim["m2"].update(f"{int(context.data().front_wheel_speed)}")
if uim.rd().m3_mode == 0:
uim["m3"].update("0.0V")
elif uim.rd().m3_mode == 1:
Expand Down

0 comments on commit 59b408d

Please sign in to comment.