Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Default Code Functionality (http://www.chiefdelphi.com/forums/showthread.php?t=81952)

Rapt0r9 05-02-2010 12:11

Default Code Functionality
 
Its been a while since I've been on CD, but here we go.

I've been mentoring some students in using Labview, which I have also been learning. I have a basic understanding of how to implement different functions and interact with different devices through the default framework. We've implemented tank drive and have started on coding the mechanisms.

My question is, what is the default functionality of the framework? What I mean by this is, what are features that are implemented by default and how dose joystick 1 call them.

I understand the vi structure and have already worked with the axises on the joysticks for the drive routine, I just am unsure what the buttons do and don't want to create conflicts while programming them.

Thanks.

Alan Anderson 05-02-2010 12:36

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.

Rapt0r9 05-02-2010 12:41

Re: Default Code Functionality
 
That's exactly what I needed, thanks.


All times are GMT -5. The time now is 06:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi