From e93058ff0bf70442a0b6ca492ce87604f0b62738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Mon, 24 Feb 2025 18:13:07 +0100 Subject: [PATCH] allow float frequency in static freq excitation --- shaketune/commands/excitate_axis_at_freq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaketune/commands/excitate_axis_at_freq.py b/shaketune/commands/excitate_axis_at_freq.py index 1ab9709..2e5d63c 100644 --- a/shaketune/commands/excitate_axis_at_freq.py +++ b/shaketune/commands/excitate_axis_at_freq.py @@ -21,7 +21,7 @@ def excitate_axis_at_freq(gcmd, config, st_process: ShakeTuneProcess) -> None: date = datetime.now().strftime('%Y%m%d_%H%M%S') create_graph = gcmd.get_int('CREATE_GRAPH', default=0, minval=0, maxval=1) == 1 - freq = gcmd.get_int('FREQUENCY', default=25, minval=1) + freq = gcmd.get_float('FREQUENCY', default=25, minval=1) duration = gcmd.get_int('DURATION', default=30, minval=1) accel_per_hz = gcmd.get_float('ACCEL_PER_HZ', default=None) axis = gcmd.get('AXIS', default='x').lower()