Go to Post changing some 0 to 1s was a lot lighter and cheaper than most of the clutches I found. - IKE [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2010, 18:06
Sauce Sauce is offline
Registered User
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Louisville
Posts: 35
Sauce is an unknown quantity at this point
Incorporating Tank Drive

Our team has edited Teleop.vi to use tank drive, opening the second joystick, reading Y axes and closing the joysticks. Two of the 4 jaguars recieved signal but didn't change upon moving the joysticks.

screenshot of the code attached. Sorry I didn't clean it up. I tried to but it made it look completely illegible.
Attached Thumbnails
Click image for larger version

Name:	Teleop.png
Views:	62
Size:	53.0 KB
ID:	8383  
  #2   Spotlight this post!  
Unread 25-01-2010, 18:21
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Incorporating Tank Drive

Did you open Begin.VI and change the Open 2 Motor VI to an Open 4 Motor VI?

Also, you will want to open the second joystick in Begin.VI instead of inside the case statement in Teleop. Look at the code that is already there for an example of how to open the Joystick then store it as a refnum.

Then in Teleop.VI you would need to put a Refnum Registry Get.VI from the Joystick section on the outside of the case statement (looks very similar to the icon already there for Drive.)

Someone else may be able to explain this in a more elegant manner if you're still having trouble.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #3   Spotlight this post!  
Unread 25-01-2010, 19:29
Sauce Sauce is offline
Registered User
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Louisville
Posts: 35
Sauce is an unknown quantity at this point
Re: Incorporating Tank Drive

alright thanks, got it working
  #4   Spotlight this post!  
Unread 25-01-2010, 20:11
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,113
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: Incorporating Tank Drive

It's a good thing the Joystick Close vi doesn't really do much. You definitely shouldn't have it in the Teleop vi. It, along with all the other Close vis should go in the Finish vi.
Closed Thread


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
Tank Drive vs. Omni Directional Drive jamie_1930 General Forum 9 24-01-2010 22:50
Tank Drive Code? huskyrobotics NI LabVIEW 9 16-02-2009 22:04
Tank Drive Sauce Programming 1 05-01-2009 18:50
Tank Drive Idaman323 Programming 14 15-02-2005 09:01
tank drive Stormhammer Programming 11 29-01-2004 23:08


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

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