Skip to content
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

How do we change the setpoint dynamically? #10

Open
alexiscruzdavid opened this issue Mar 8, 2023 · 1 comment
Open

How do we change the setpoint dynamically? #10

alexiscruzdavid opened this issue Mar 8, 2023 · 1 comment

Comments

@alexiscruzdavid
Copy link

How can we change the setpoint, the desired value to achieve, dynamically in the loop(). I want to change the value of setpoint depending on an input the user gives. Is it simply just running controller.begin() again? Or is that wrong?

@PowerBroker2
Copy link
Owner

All you need to do is change the value of the variable you're using to save the setpoint in. The library uses pointers to monitor parameters like the setpoint, so controller.begin() is only necessary once (for setting up the controller).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants