Go to Post woo hoo! I rigged up brief Internet access using an old wornout robot battery. - Mark McLeod [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 30-01-2010, 15:07
mutantblond mutantblond is offline
Registered User
FRC #2523
 
Join Date: Sep 2008
Location: st. johnsbury, vt
Posts: 43
mutantblond is an unknown quantity at this point
We're in tank drive labview he#$

The Joystick modules are each connected to a different Joystick Read vi. We're using 4 motors. If you push the J1 along the +y axis, the right wheels move clockwise, if you push J1 along the -y axis, the left wheels move counterclockwise. There's no response when J2 is moved. Move J1 to the far left or right disables teleop mode, we have to re-enable it to use it again.
Any suggestions?
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2010, 17:34
jmanela's Avatar
jmanela jmanela is offline
+1 is BIGGER than -1
AKA: Joshua Manela
FRC #2586 (Fondy Fire)
Team Role: College Student
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Michigan
Posts: 314
jmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to behold
Re: We're in tank drive labview he#$

can you post a picture of the code so i can see it a little better? Try to check your Begin.vi and see if you initialized everything correctly and also check your refnum names. Make sure you called the joysticks in teleop correct (correct refnum's).

Can you give me a little more info on your drivetrain?
__________________
||2009|| Entrepeneurship Award, QF - Traverse City | Rookie All Star, QF - Detroit | Highest Rookie Seed, Rookie All Star, QF - Michigan State Championship | Finalist - MARC ||2010|| Engineering Inspiration, Website Award, SF- Kettering | Judges Award, Website Award, SF - Detroit | Website Award, Winner, Michigan State Champ //Thank you 469 and 1918!! | Finalist - MARC ||2011|| Engineering Inspiration, Website - Kettering | Entrepreneurship, Website, Finalist - Waterford | Website - MSC

Last edited by jmanela : 30-01-2010 at 17:37.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2010, 22: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: We're in tank drive labview he#$

Quote:
Originally Posted by mutantblond View Post
The Joystick modules are each connected to a different Joystick Read vi.
Open up Joystick Read and look at what it's doing. You probably don't want to use it as it is for Tank Drive. You can modify it to read the two different joysticks, or you can replace each of the two you're using now with a simple Joystick Get in your Teleop vi.
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2010, 10:07
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: We're in tank drive labview he#$

If you haven't done it already, open up the Example called Tank Drive Example.

The easiest way to find FRC specific examples in LV is from the Getting Started window. If you already have other code open, choose View>>Getting Started to bring it back up.

On the right hand side, it lists a few examples and has a More... link at the bottom. The more link will show you a big list including the Tank drive.

The tank drive and most of the examples are simplified a bit, but hopefully that allows you to inspect what the blocks do more easily. It shows that you need two opens, two Get Axis blocks, and a Tank Drive followed by closes for the three.

You will put your code into Begin, Tele, and Finish, but otherwise shows how these are to be used.

If you have more specific questions, ask with details.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2010, 16:17
Caleigh C Caleigh C is offline
Registered User
None #2523
 
Join Date: Jan 2010
Location: Vermont
Posts: 5
Caleigh C is an unknown quantity at this point
Re: We're in tank drive labview he#$

Attached is my teleop.vi code. Thanks!
Attached Files
File Type: vi Teleop.vi (17.2 KB, 44 views)
Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2010, 16:53
mutantblond mutantblond is offline
Registered User
FRC #2523
 
Join Date: Sep 2008
Location: st. johnsbury, vt
Posts: 43
mutantblond is an unknown quantity at this point
Re: We're in tank drive labview he#$

We can't find the Begin, Tele, and Finish modules.
Reply With Quote
  #7   Spotlight this post!  
Unread 01-02-2010, 16:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: We're in tank drive labview he#$

I see the problems.
First, you have taken a single joystick and tried to treat it as if it were two joysticks.
Second, you put the code into an example that requires you to hold down button 3 for it to work. (P.S. I'm mistaken, you also have it in the right place, but still have 2 competing Tank Drive vi's trying to order the wheels around at the same time.)
Third, you have 3 different vi's competing all at the same time to drive the wheels.

Tank drive requires two separate joysticks and a single drive vi.
Here's an example of what it might look like:
Attached Thumbnails
Click image for larger version

Name:	TankDrive.jpg
Views:	65
Size:	14.8 KB
ID:	8467  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-02-2010 at 17:15.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2010, 16:59
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: We're in tank drive labview he#$

Quote:
Originally Posted by mutantblond View Post
We can't find the Begin, Tele, and Finish modules.
They're under the Team Code part of the project hierarchy.
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
Tank Drive vs. Omni Directional Drive jamie_1930 General Forum 9 24-01-2010 22:50
Tank Drive with Advanced Framework in Labview finman NI LabVIEW 4 30-01-2009 13:35
Tank Drive Sauce Programming 1 05-01-2009 18:50
Please Help, Don't Know How to Implement Tank Drive in LabView CVassos NI LabVIEW 5 24-12-2008 16:55
tank drive Stormhammer Programming 11 29-01-2004 23:08


All times are GMT -5. The time now is 22:37.

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