Skip to content

Incorrect implementation of differential error calculation #1

@svenwanzenried

Description

@svenwanzenried

Hi @ussserrr
Thanks for sharing this neat library! I use it to control the temperature in an chamber I use for smoking meat.
Now while implementing, I looked at your code and I think the calculation of the D error is not done correctly.

You are currently calculating the difference between the input and the last_input. But I think it should be the difference between the Perr and the last Perr. Because we want the D portion to react fast to jumps in the error value.

Do you agree?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions