|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Labview Questions!!
Our team is also trying to change the example program from arcade to tank drive. The tank example is written in the Basic framework. I don't think the Basic Framework is available in this year. This is causing our team some confusion.
We have replaced the Arcade drive.VIs with Tank.VIs in the Teleop.vi-execute case-true case, Teleop.vi-stop case. We have also added another joystick reference in the open and close VIs. Anything else we need to change? When we deploy the robot is still driving in tank. PS- Will changing from arcade to tank affect our ability to camera track with the default camera tracking code? |
|
#2
|
|||
|
|||
|
Re: Labview Questions!!
We also need to know how to do this. The basic robot main.vi is quite different from last years. Also if anybody knows how to wire the gyro the information is to technical for us.
|
|
#3
|
|||||
|
|||||
|
Re: Labview Questions!!
Quote:
![]() You also need to change from reading the x and y axes of a single joystick to reading the y axes of two different joysticks. But if you didn't do that properly, you'd find the robot driving oddly, sort of like a diagonal arcade but not quite. If it is still acting like the original arcade mode software, you might not be running the new code successfully. How are you deploying it? Quote:
|
|
#4
|
||||||
|
||||||
|
Re: Labview Questions!!
As long as you changed the code from arcade to tank in the false case only.
|
|
#5
|
|||
|
|||
|
Re: Labview Questions!!
We added a second joystick reference in the begin and close VIs. (see attached) Joystick 1, motors, and gyro error outs are connected to an array function. Do all devices have to be connected to the array? We have been using the videos at LVMastery to learn LabView and the begin VI from the LVMastery videos do not have this array that is built in to the 2010 Game Robot Project.
We changed all arcade drive VIs with tank, in the true and false case. Do we need to change back to arcade in the true case? Can you explain the purpose of this case structure? The videos from LVMastery do not have this case structure. Thanks in advance. |
|
#6
|
|||
|
|||
|
Re: Labview Questions!!
The error I/O in begin isn't really that important. Unwired errors will still show up in the diagnostics tab. Wiring the errors give you the ability to filter, respond, and retry, but simply building an array to pass out really doesn't accomplish anything.
You begin looks fine. How about the Teleop? Greg McKaskle |
|
#7
|
|||
|
|||
|
Re: Labview Questions!!
I've attached the Teleop False case. I changed the True case back to match the default code.
|
|
#8
|
|||||
|
|||||
|
Re: Labview Questions!!
You're reading Joystick 1 instead of Joystick 2 for your right side control. Unless you've changed the joystick read sub-vi, I think your robot will travel straight based on Joystick 1, it will never turn, and it will ignore Joystick 2.
|
|
#9
|
||||
|
||||
|
Re: Labview Questions!!
grosh,
can you email me that code, I want to take a closer look at it because it is different from the one that I made. |
|
#10
|
|||
|
|||
|
Oops. I will make the change and test on Monday. Thanks all!
One last question though...Is Arcade mode(default) needed in the True case as Joe stated earlier... or does it matter..or what? |
|
#11
|
|||||
|
|||||
|
Re: Labview Questions!!
Quote:
If you want to change the target-seeking code to give commands to a Tank Drive vi instead, you can. |
|
#12
|
|||||
|
|||||
|
Re: Labview Questions!!
Quote:
Your joysticks will not revert to Arcade drive. They will only operate in Tank drive. |
|
#13
|
||||
|
||||
|
Re: Labview Questions!!
Quote:
For more on wiring the gyro, see the FIRST Sensor Manual_RevA here http://www.usfirst.org/roboticsprogr...nt.aspx?id=452 If you have trouble with your gyro drifting, try rebooting the cRIO. The cRIO calibrates modules when it boots, so if you added a module afterward, or your robot was moving during bootup, you may have calibration issues. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Labview 8.6: Xbox 360 wired controller Questions | Lucario231 | NI LabVIEW | 3 | 20-01-2010 18:03 |
| LabView: Questions of a Rookie | assaf2b | NI LabVIEW | 1 | 17-01-2009 12:14 |
| Autonomous questions (Labview) and some general issues | Daniel_H | NI LabVIEW | 15 | 08-01-2009 21:07 |
| Basic Labview Programming Questions | comphappy | NI LabVIEW | 20 | 13-10-2008 18:29 |
| A few Labview questions | Japper | NI LabVIEW | 14 | 09-09-2008 20:41 |