Quote:
Originally Posted by lineskier
beware of the logic here, as if the limit switch is triggered there is no way to get the arm off of the switch
my solution to this is to rather than stop, prohibit movement in one direction.
pseudo code would look something like this.
if(limit == true && y>1)
stop();
else
arm.run(js.getY);
|
This is somewhat what i want to do, i only want the switch to be powered in auto. so then i can extend past it to floor load, and i just want the switch to turn off the arm when the arm hits the switch. im just clueless right now.