From f9394c5706436dab50774c983cd089ed190e1866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Wed, 5 Jun 2024 11:58:02 +0200 Subject: [PATCH] current unit for freq target --- shaketune/post_processing/graph_vibrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaketune/post_processing/graph_vibrations.py b/shaketune/post_processing/graph_vibrations.py index 5689cfb..7fbf8e9 100644 --- a/shaketune/post_processing/graph_vibrations.py +++ b/shaketune/post_processing/graph_vibrations.py @@ -571,7 +571,7 @@ def plot_motor_config_txt(fig, motors, differences): for mot, lbl in motor_details ] config_blocks.append( - f'| TMC Autotune enabled (PWM freq target: X={int(motors[0].get_config("pwm_freq_target"))}kHz / Y={int(motors[1].get_config("pwm_freq_target"))}kHz)' + f'| TMC Autotune enabled (PWM freq target: X={int(motors[0].get_config("pwm_freq_target")/1000)}kHz / Y={int(motors[1].get_config("pwm_freq_target")/1000)}kHz)' ) else: config_blocks = [