Quote:
Originally Posted by WillNess
Just a FYI: The limit switches I have return true when not pressed, and false when pressed.
|
Simply replace the TopLimitSwitch.get() calls with !TopLimitSwitch.get() and the BottomLimitSwitch.get() with !BottomLimitSwitch.get(). I also assumed that moving up required a positive setting on the motor; you may need to negate the motor speeds.