|
Re: Two limit switches, one button
You could use a state machine (in Teleop or Periodic Tasks) or a sequence (in Periodic Tasks only).
- push button
- run up until limit switch is hit and stop
- push same button (or a different one)
- run down until limit switch is hit and stop
If one button, then use a feedback node or shift registers to remember the previous direction.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
|