View Single Post
  #4   Spotlight this post!  
Unread 15-02-2015, 21:42
nandeeka's Avatar
nandeeka nandeeka is offline
Registered User
FRC #1868
Team Role: Programmer
 
Join Date: May 2014
Rookie Year: 2013
Location: United States
Posts: 53
nandeeka is on a distinguished road
Re: Limit switch help

If you are trying to stop the motor when the limit switch is pressed, use this line of code:
Code:
Motor.Set(0.0);
If you are trying to start the motor when the limit switch is pressed, use this line of code:

Code:
Motor.Set(0.5);
Reply With Quote