-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autotune should be a method for class PID #6
Comments
I can definitely see benefit to something like a hard-link between the PID and Autotune. at the same time, there's a little dance that happens between pid and autotune when the "autotune" button is pressed, and I don't think that dance will be the same in every application. having a them separate allows for some flexibility on that front. maybe the solution is a LinkedAutotune class that inherits from the autotuner. it could get passed all the same constructors, along with a pointer to a pid object. |
I'll probably code something up in a fork. It may not be for everybody, like you say. |
Here is the class I'm using, which combine PID and PID_ATune. ` #include <PID_v1.h> class PID_enhanced: public PID, public PID_ATune { private:
public:
}; #endif ` |
I tried using your code, Wei1234c, but it returns me this error:
Has anyone got it to work? Thanks! |
It seems desirable to me to have the entire PID object passed to the auto tune function rather than the individual variables. Probably not possible since I don't see a way to do this that would not break existing programs.
The text was updated successfully, but these errors were encountered: