From 570401489b11a56141c74ccba9afb7fc3b1dd8d5 Mon Sep 17 00:00:00 2001 From: gab-k Date: Sun, 15 Oct 2023 14:46:59 +0200 Subject: [PATCH] fixed wrong parameter in measure() function call --- core1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core1.c b/core1.c index a468a33..9a75822 100644 --- a/core1.c +++ b/core1.c @@ -176,7 +176,7 @@ bool pid_control(struct repeating_timer *t){ // Measure BEMF voltage and compute error pid->measurement = measure(pid->msr_total_iterations, - pid->msr_total_iterations, + pid->msr_delay_in_us, pid->l_side_arr_cutoff, pid->r_side_arr_cutoff, pid->direction); @@ -334,4 +334,4 @@ void core1_entry() { time_last_update = get_absolute_time(); } } -} \ No newline at end of file +}