Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   LabVIEW Programming help (http://www.chiefdelphi.com/forums/showthread.php?t=92037)

Nicandy 16-02-2011 18:27

LabVIEW Programming help
 
1 Attachment(s)
Hey there,
We're trying to program the joystick so that when it is pushed forward it goes forward, left it turns left, back back, and so on. we have the joystick to control the forward and reverse motion of the bot, but when we try to program it to be able to have it turn left or right it doesn't work, it takes the forward/reverse motion and makes it so that when the joystick is pushed left or right it goes forward/reverse. how can we program it so that this issue doesn't happen? we're using LabVIEW for our programing.
many thanks from the Marinerds!
Below is the programing setup we are using that doesn't seem to work

jhellr13 16-02-2011 19:10

Re: LabVIEW Programming help
 
are you using a 2 or 4 wheel drive?

Nicandy 16-02-2011 19:12

Re: LabVIEW Programming help
 
We are using two motors, with four wheels, the two motors being in the rear. While the front two wheels are free spinning.

jhellr13 16-02-2011 19:18

Re: LabVIEW Programming help
 
ok. I think you are over thinking the drive system. When you open a new project in labview, open up to the begin.vi through team code menu. As default, it is set as a 2 motor arcade drive which is what you seem to what. It is also set to work with the joystick the way you want it to. You may have to work with it my changing the true and false values in the constants.
In your picture, it seemed you were trying to make two arcade drive that would do the same thing. Try what i said. Let me know how it goes.

NetPlanet 16-02-2011 19:18

Re: LabVIEW Programming help
 
Try opening the motors and joysticks once. You only need one Ref per actuator or sensor to which you can connect as many vi's as you wish. Make sure you connect the y axis of the joystick to the y of the arcade drive, and the x axis of the joystick to the x of the arcade drive. Hope this helps.


All times are GMT -5. The time now is 03:56.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi