Skip to content

Wrong sign on the derivative term.  #4

Description

@mike-matera

Hello! While validating my own PID controller I've been testing against other PIDs available for Arduino. Here's a plot of AutoPID vs. a reference that matches the excellent work done here:

https://github.com/br3ttb/Arduino-PID-Library

figure_1-3

The difference is that your D-term has the wrong sign:

https://github.com/r-downing/AutoPID/blob/master/AutoPID.cpp#L62

Compare that to Brett's ArduinoPID:

https://github.com/br3ttb/Arduino-PID-Library/blob/master/PID_v1.cpp#L83

And my FastPID:

https://github.com/mike-matera/FastPID/blob/master/src/FastPID.cpp#L96

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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