View Single Post
  #5   Spotlight this post!  
Unread 05-03-2009, 19:23
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,752
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: We Need a Little Bit Of Help...

If you open the default Autonomous Independent VI, it contains commented code that loops around in time-based pattern.

The diagram uses two primary VIs, the Drive VI to set the motor speeds, and the Wait and Feed. You can use sequences of these to carry out all sorts of patterns.

You can do the pattern you describe with as little as four VIs, two drives and two waits.

Think about what happens when driving the pattern in tele. What joystick values will flow into the drive. What would be the joystick positions for the first movement, and the next. Each time you want to change the motor speeds, execute a Drive, and to leave it that way for some time, use a Wait and Feed.

After you get the hang of it, you may want to modify this a bit to accelerate more slowly using either a few more blocks or a loop, but there is nothing complicated about the simple dead reckoning driving.

Greg McKaskle
Reply With Quote