Skip to content

Commit 5704014

Browse files
committed
fixed wrong parameter in measure() function call
1 parent 10fbcb5 commit 5704014

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ bool pid_control(struct repeating_timer *t){
176176

177177
// Measure BEMF voltage and compute error
178178
pid->measurement = measure(pid->msr_total_iterations,
179-
pid->msr_total_iterations,
179+
pid->msr_delay_in_us,
180180
pid->l_side_arr_cutoff,
181181
pid->r_side_arr_cutoff,
182182
pid->direction);
@@ -334,4 +334,4 @@ void core1_entry() {
334334
time_last_update = get_absolute_time();
335335
}
336336
}
337-
}
337+
}

0 commit comments

Comments
 (0)