Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Tank Drive Throttle Position (http://www.chiefdelphi.com/forums/showthread.php?t=124217)

bhumudar 06-01-2014 22:12

Tank Drive Throttle Position
 
So as I was coding I ran into a little bit of a problem. The code that I am writing requires me to know the desired vehicle speed (i.e Joystick Throttle Position), and the problem is, how do you determine what that is? Is it the value of joystick 1, 2, or somewhere in between? I was considering using the average of the absolute value of both. I almost want to say that it can be modeled by a differential equation. Is there a better way? Thanks in advance.

Alan Anderson 07-01-2014 12:56

Re: Tank Drive Throttle Position
 
The average of the two joysticks' Y values should give you what you want, a "desired forward speed" value. In addition, half of the difference between the Y values should give you the equivalent of a "desired turn rate" value.

Incidentally, those values are the two things you get from a single joystick's Y and X axes when using Arcade control.

bhumudar 07-01-2014 22:08

Re: Tank Drive Throttle Position
 
That's what I was thinking. Thanks for the confirmation.


All times are GMT -5. The time now is 09:45.

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