View Single Post
  #9   Spotlight this post!  
Unread 12-02-2013, 23:25
nickcvet89 nickcvet89 is offline
Registered User
FRC #1228 (RoboTribe)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2003
Location: Rahway,NJ
Posts: 99
nickcvet89 will become famous soon enough
Send a message via AIM to nickcvet89
Re: Help on programming a limit switch

@propionate I tried the modified version of the code you created (the corrected one by mark mcleod) and ran into an issue with it. When the trigger is pressed, the arm moves forward as desired, then the first limit switch is pressed, the problem arises is that the only way the arm moves in reverse is if it presses the switch and lets it go and same goes for when it presses the second limit switch to stop. Essentially those movements only work when the switch is pressed and released, but does not work if you continuously hold the either of the switches. Is there anyway to change the program so that when the switch is pressed, it starts the next set of programmed movements instead of it waiting for the switch to start those movements? Thanks for any help
__________________
Reply With Quote