From 4b2ed67dda67fbefd7379cccf54e206c1a68b5e9 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 12 Apr 2024 18:34:36 +1200 Subject: [PATCH] Use absolute value of deadband --- LinuxCNC/Components/Remora/remora.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LinuxCNC/Components/Remora/remora.c b/LinuxCNC/Components/Remora/remora.c index 22bce530..30ac86c6 100644 --- a/LinuxCNC/Components/Remora/remora.c +++ b/LinuxCNC/Components/Remora/remora.c @@ -775,6 +775,8 @@ void update_freq(void *arg, long period) deadband = 1 / data->pos_scale[i]; } + deadband = fabs(deadband); + // read the command and feedback command = *(data->pos_cmd[i]); feedback = *(data->pos_fb[i]);