Thread: Button help
View Single Post
  #2   Spotlight this post!  
Unread 13-02-2010, 13:07
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: Button help

The green comment to the left of the Robot Main loop gives some guidance, and so do the comments on the subVIs.

To follow the flow that was intended, place the code inside of the Teleop SubVI. This will help to keep the code more structured and will help to ensure that the initialization, execution, and finalization happen correctly.

So to repeat the comment, Begin is the appropriate place to put joystick and motor Opens and store them with a name.

Teleop can then read the refnums by name and use them to drive the robot.

Finish can Close them.

Greg McKaskle
Reply With Quote