View Single Post
  #2   Spotlight this post!  
Unread 05-02-2010, 12:36
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Default Code Functionality

The Teleop block diagram contains a comment that claims that Button 2 resets the gyro. The Joystick Read subVI disagrees, and when the code and the comments disagree, the code wins.

The USB device named Joystick 1 controls everything. Its X and Y axes feed Arcade Drive.

Button 3 activates the auto-aim code. When it is first pressed, the camera targeting information is used to determine a desired turn angle. While it is still pressed, a PID routine uses gyro feedback to control Arcade Drive and spin the robot to the target.

Buttons 8 and 9 together reset the gyro.
Reply With Quote