View Single Post
  #6   Spotlight this post!  
Unread 28-01-2013, 15:15
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Help on programming a limit switch

Which example are you referring to?
The simple limit switch example won't run the sequence you were talking about originally. That's what Stephen's code does.

In that original limit switch example, if you want to use a button instead of the joystick axis, then you'll need to use the button to choose a motor speed to put into the coercion vi.
The broken wires are because the upper and lower limit wires are carrying floating-point numbers, while a button is a boolean True or False.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote