|
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.
|