Quote:
Originally Posted by Team3763 Adam
So what I'm asking is when I'm not pressing we'll say button A, the motors aren't spinning. However, when I press A, the motors will slowl speed up until they reach their max RPM possible and will sustain the max speed until I release the button.
|
Do the LabVIEW equivalent of something like this:
Code:
if (buttonIsNotPressed) {cmd=0; setMotor(cmd)}
else {cmd+=epsilon; if (cmd>1) cmd=1; setMotor(cmd)}
... where "epsilon" is a small constant value that establishes the ramp-up rate.