|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
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? Last edited by jmanela : 30-01-2010 at 17:37. |
|
#3
|
|||||
|
|||||
|
Re: We're in tank drive labview he#$
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.
|
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
Re: We're in tank drive labview he#$
Attached is my teleop.vi code. Thanks!
|
|
#6
|
|||
|
|||
|
Re: We're in tank drive labview he#$
We can't find the Begin, Tele, and Finish modules.
|
|
#7
|
|||||
|
|||||
|
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: Last edited by Mark McLeod : 01-02-2010 at 17:15. |
|
#8
|
|||||
|
|||||
|
Re: We're in tank drive labview he#$
They're under the Team Code part of the project hierarchy.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |