|
Re: how to creat a home button
You may be running away from your setpoint if the motor and the pot are reversed and returning the opposite of what the code is expecting. Your max and min may be reversed.
You can use a probe running in debug to see if the actual pot value is getting further from the setpoint as you run.
A simple test is to reverse or negate (-x) the output of the PID icon for the motor set.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
|