Bug in PID implementation #34

Closed
opened 2021-07-13 20:28:49 +02:00 by mhu · 1 comment
Owner

The derivate calculation of the PID is wrong.

pid->derivate = pid->k_deriv_t * (deviation - pid->last_in) - pid->k_inv_deriv_t * pid->derivate;

should be

pid->derivate = pid->k_deriv_t * (deviation - pid->last_in) + pid->k_inv_deriv_t * pid->derivate;

The derivate calculation of the PID is wrong. ``pid->derivate = pid->k_deriv_t * (deviation - pid->last_in) - pid->k_inv_deriv_t * pid->derivate;`` should be ``pid->derivate = pid->k_deriv_t * (deviation - pid->last_in) + pid->k_inv_deriv_t * pid->derivate;``
Author
Owner

All profiles have to be checked for functionality again!

All profiles have to be checked for functionality again!
mhu closed this issue 2021-07-13 20:32:16 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

0001-01-01

Dependencies

No dependencies set.

Reference: mhu/reflow-oven-control-sw#34
No description provided.