Go to Post "FIRST isn't what it used to be anymore. It makes me upset and it makes me question many things." - Arefin Bari [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2010, 12:11
Rapt0r9's Avatar
Rapt0r9 Rapt0r9 is offline
Mentor
AKA: Tyler
FRC #0747 (Flight Crew)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Middlesex, NJ
Posts: 59
Rapt0r9 will become famous soon enoughRapt0r9 will become famous soon enough
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.
__________________
Mentor
BS Information Technology - NJIT (2009 - )
Team 869 (2004 - 2008, 2011 -), Team 1811 (2010), Team 869 (2009), Team 613 (2009 - 2010)
"Nothing in this life worth having comes easy."
Reply With Quote
  #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
  #3   Spotlight this post!  
Unread 05-02-2010, 12:41
Rapt0r9's Avatar
Rapt0r9 Rapt0r9 is offline
Mentor
AKA: Tyler
FRC #0747 (Flight Crew)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Middlesex, NJ
Posts: 59
Rapt0r9 will become famous soon enoughRapt0r9 will become famous soon enough
Re: Default Code Functionality

That's exactly what I needed, thanks.
__________________
Mentor
BS Information Technology - NJIT (2009 - )
Team 869 (2004 - 2008, 2011 -), Team 1811 (2010), Team 869 (2009), Team 613 (2009 - 2010)
"Nothing in this life worth having comes easy."
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems integrating CMUCAM code and IFI Default Code Windward Programming 2 06-02-2007 16:48
Math functionality in EasyC? scottmso Programming 7 16-02-2006 14:52
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
user code to default code phoenixomega001 Programming 5 09-01-2005 00:09
Inserting Naviagation code into Default code? actorindp Programming 3 28-01-2004 18:12


All times are GMT -5. The time now is 08:53.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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