View Single Post
  #7   Spotlight this post!  
Unread 12-02-2015, 23:10
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 55
mshafer1 is an unknown quantity at this point
Re: Basic Limit Switch

Quote:
Originally Posted by Minerbotics4827 View Post
I've figured out how to setup the normal limit switch, however, I am not sure on how to set it up so you can have a button override what the switch does when pressed. Someone helped us set up something similar last year at competition, but our old code got messed up.
The attached file is only meant to be suggestive, but would accomplish the task of an override.
It assumes a limit switch that is true if not, remove the not gate.

Basically an override boils down to the limit is not pressed or the override is.

Note: on the comment going to the motor, the value is otherwise zero.
Attached Thumbnails
Click image for larger version

Name:	limitSwitchOverride.png
Views:	51
Size:	31.6 KB
ID:	18318  
Reply With Quote