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 +}