Skip to content

Commit

Permalink
fixed wrong parameter in measure() function call
Browse files Browse the repository at this point in the history
  • Loading branch information
gab-k committed Oct 15, 2023
1 parent 10fbcb5 commit 5704014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -334,4 +334,4 @@ void core1_entry() {
time_last_update = get_absolute_time();
}
}
}
}

0 comments on commit 5704014

Please sign in to comment.