Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   West Coast Drive Code (http://www.chiefdelphi.com/forums/showthread.php?t=107807)

Ether 09-03-2013 14:30

Re: West Coast Drive Code
 
Quote:

Originally Posted by arun4444 (Post 1245403)
Great, quick question -

would setting

a = 0.25;
b = 0.40;

be similar to setting:

a=0
b=1

and passing the joystick inputs through a cubic?

No. Why would you think it would?



arun4444 09-03-2013 20:02

Re: West Coast Drive Code
 
I am using java code and apparently the JAVA ME does not have built in support for cuberoots etc. We originally had a cubic providing a non linear throttle response in our old code - i guess my question was does tweaking a and b provide a similar response as standard wpilib arcade drive with a cubic on top?

Ether 27-03-2013 18:59

Re: West Coast Drive Code
 
Quote:

Originally Posted by arun4444 (Post 1245614)
i guess my question was does tweaking a and b provide a similar response as standard wpilib arcade drive with a cubic on top?

No. Tuning "a" and "b" just changes the endpoints at (X=+/-1,Y=0) and (X=+/-1, Y=+/-1). The interpolation is linear between those endpoints. That's why I named it "Tunable Linear Interpolated Arcade".




All times are GMT -5. The time now is 13:21.

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