View Single Post
  #2   Spotlight this post!  
Unread 23-03-2013, 22:04
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Teleop Limit Switch Firing Sequence

The way it is written, the first loop will run at full speed until the limit switch is triggered.

You may want to combine the exit condition with a timeout. OR the limit switch and either a loop counter or a time since the loop began. You may also want to throttle the loop by putting a delay in it.

The attached image shows the sort of thing you might do.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Clipboard 1.png
Views:	34
Size:	166.4 KB
ID:	14419  
Reply With Quote