From 59b408d9f0c8ee206a52da5b7013ef1fecf4e6d6 Mon Sep 17 00:00:00 2001 From: ATATC Date: Sat, 30 Dec 2023 05:35:37 -0500 Subject: [PATCH] Slowed down the speed refresh rate. --- leads_vec/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/leads_vec/cli.py b/leads_vec/cli.py index c9400b40..696f4c80 100644 --- a/leads_vec/cli.py +++ b/leads_vec/cli.py @@ -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: