Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Playstation controller (http://www.chiefdelphi.com/forums/showthread.php?t=74354)

Norton 13-02-2009 15:18

Playstation controller
 
We are going to use a playstation like USB controller and Its working pretty well, but the analogs have a very small range, in the middle of the physical range it reports 128 to GET RAW or 1 to Joystick GET, how could I optimize this???

I tried to use the scale, but no luck...

Thanks

Alan Anderson 13-02-2009 15:21

Re: Playstation controller
 
The joystick Get() method returns a floating-point value from -1 to +1. The neutral "middle" value should be 0. The range is not as important as the resolution, and the resolution is basically set by the hardware implementation in the controller.

Norton 14-02-2009 12:48

Re: Playstation controller
 
Ok Alan... I know that, I would like to know if there is a way to "distribute" the axis in a more even way . . .

but I tried it on the computer and got the same results, thanks

Greg McKaskle 14-02-2009 20:28

Re: Playstation controller
 
What you may be looking for is a nonlinear mapping. You might try squaring the joystick value before sending it to the motor. That will give you a more gradual action away from zero. Going the opposite directly, a sign preserving square root would be interesting.

Greg McKaskle


All times are GMT -5. The time now is 10:31.

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