View Single Post
  #6   Spotlight this post!  
Unread 17-03-2013, 18:48
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: Autonomous limit switch

The coment makes it sound as if you want to swap the motor set and the delay. The code is delaying 2000 ms, then setting the motor and immediately moving on. Put the motor set before or in parallel with the delay.

A while loop is nothing special. It is perfectly valid if you program it correctly and no worse than an incorrectly programmed for loop or other code.

Greg McKaskle
Reply With Quote