Skip to content

Commit

Permalink
fix tools pid speed adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Oct 4, 2024
1 parent 0d9279a commit 1597a46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uCNC/src/hal/tools/tools/spindle_pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static void pid_update(void)
{
if (pid_compute(&spindle_pwm_pid, &output, output, get_speed(), HZ_TO_MS(SPINDLE_PWM_PID_SAMPLE_RATE_HZ)))
{
io_set_pwm(SPINDLE_PWM, range_speed((int16_t)output), 0);
io_set_pwm(SPINDLE_PWM, range_speed((int16_t)output, 0));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion uCNC/src/hal/tools/tools/vfd_pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static void pid_update(void)
{
if (pid_compute(&vfd_pwm_pid, &output, output, tool_get_speed(), HZ_TO_MS(VFD_PWM_PID_SAMPLE_RATE_HZ)))
{
io_set_pwm(VFD_PWM, range_speed((int16_t)output), 0);
io_set_pwm(VFD_PWM, range_speed((int16_t)output, 0));
}
}
}
Expand Down

0 comments on commit 1597a46

Please sign in to comment.