View Single Post
  #4   Spotlight this post!  
Unread 02-02-2015, 10:01
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Two limit switches, one button

Do you want to control a motor using only one joystick button?

Tell us a story. Pretend that the program and wiring are done, and describe for us what the person at the controls does and what the robot does in response. Use phrases like "presses the button for a half second then releases it" and "lift starts moving up and doesn't stop until the top limit switch is activated." Make sure you cover every case that you want to handle. Then add some cases that you don't expect but might still happen, like "holds the button down even after the lift has reached the bottom" or "presses the button again while the lift is already moving upward".

Once we know what you want the robot to do in response to the operator's actions, we can show you how to create code that will do it.
Reply With Quote