Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   controller sensitivity for logitech gamepad (http://www.chiefdelphi.com/forums/showthread.php?t=81612)

Hustler 31-01-2010 19:08

controller sensitivity for logitech gamepad
 
Hi
I"m on team 2813 and this is my second year programming with labview.

My question is to how to change the sensitivity on the Logitech Gamepad controller, which we are using for the first time as a way to drive the robot. The driver on my team says it's too sensitive as the robot moves way to fast for moving the stick just a little bit. The Mentor on my team says to change the Deadband, which should fix the sensitivity problem. However my Mentor and I are unsure how or where to change it. I did notice the deadband global when I opened up the motor set speed vi. but was unsure how to change it.

Any help would be appreciated
Thanks in advance :D

DonRotolo 01-02-2010 23:41

Re: controller sensitivity for logitech gamepad
 
Not being a programmer, I can't help directly, but I also did not want your post to go completely unanswered.

Do you understand what deadband is? That's important.

As it is now, any input from the joystick produces a linearly-same output to the motor. That is, a 20% input produces a 20% output, 50% in=50% out.

Basically, to address your sensitivity issue, you change this "mapping" between input and output. For example:
Code:

In %  Orig. Out%  "New" out %
0          0              0
10        10              5
20        20            10
30        30            15
40        40            25
50        50            40
75        75            70
100      100          100

The "Orig Out %" is what you might have now, the "New out %" is re-mapped to provide more sensitivity at low throttle settings, while retaining full throttle where it is. Drivers cannot tell the difference (easily) between 50, 75 and 100%, but they sure can tell 10 from 20%

Just some food for thought.

bladetech932 02-02-2010 00:15

Re: controller sensitivity for logitech gamepad
 
use a case structure that divides by 2 when <50 and doesnt do anything when its >50 so when joystick value is <50 power output is cut in half
and when >50 output is normal this is what we are using for our logitech controller
it will be something like
10=5
25=12.5
50=25
75=75
100=100
you can adjust the parameters of the case by adjusting the separator
hope this helps


All times are GMT -5. The time now is 11:48.

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