|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Help Needed With Tank Drive Controls
I was familiar with how to set up tank drive in earlier years but since there was a bit of change with the joystick get functions in 2015 Labview. I've been trying to figure out how to work around that but I am currently stumped. I'm sure it's something stupid simple that I'm completely overlooking but can anyone help me understand how to work around the code to create the code needed to get tank drive to work. Thanks a bunch in advance.
|
|
#2
|
||||
|
||||
|
Re: Help Needed With Tank Drive Controls
LabVIEW changed the joystick get a bit. Now it is an array instead of a cluster. Check out this guide to see some of the changes. One thing to remember is that the array starts at 0, so instead of axis 1 and 2 like last year, it will be axis 0 and 1.
|
|
#3
|
||||
|
||||
|
Re: Help Needed With Tank Drive Controls
Thanks for that.
|
|
#4
|
||||
|
||||
|
Re: Help Needed With Tank Drive Controls
What you said did work and it corrected the original problem that I had with the joysticks reading on the X-Axis and my over all confusion about the changes made to the dealing of joystick controls. Only now I have a problem with the joysticks being inverted (forward is backward and backwards is forward) I will post what I've done so far with the Tele-op code but I don't know whether this would be a mistake on my behalf of the misplacement of the motors in the PWM ports or if it would be a mistake in how I dealt with the array. I know for a fact that how the array is set up is correct I just don't know if I made a mistake somewhere that caused it to become inverted.
|
|
#5
|
||||
|
||||
|
Re: Help Needed With Tank Drive Controls
On the bottom of the Open 4 motor .vi, there should be two more terminals for inverting motors. Make sure that the two sides are set to the correct inversion (you have one left motor inverted, create a constant on the other left motor on the bottom and invert it too). This will prevent your motors from working against each other in the gearbox. If the robot is still backwards after inverting that left terminal, set both left boxes to false and set both right terminals to true. This should get you working in the right direction.
|
|
#6
|
||||
|
||||
|
Re: Help Needed With Tank Drive Controls
Thank you.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|