Java-Gaming.org Hi !
 Featured games (90) games approved by the League of Dukes Games in Showcase (753) Games in Android Showcase (228) games submitted by our members Games in WIP (842) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: [1]
 ignore  |  Print
 Decreasing the sensitivity  (Read 2840 times) 0 Members and 1 Guest are viewing this topic.
AppleWilliam

Senior Newbie

 « Posted 2010-08-04 19:34:25 »

The xbox controller is extremlly sensitive.  I was wondering how I should go about decreasing the sensitivity.  I was thinking about dividing the poll data by 2.  Would that work or is there an easier way.
Riven

« JGO Overlord »

Medals: 1336
Projects: 4
Exp: 16 years

 « Reply #1 - Posted 2010-08-04 19:37:50 »

maybe...

Math.sqrt(value)

or...

Math.pow(value, 1.0 / factor)

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
AppleWilliam

Senior Newbie

 « Reply #2 - Posted 2010-08-04 19:50:47 »

maybe...

Math.sqrt(value)

or...

Math.pow(value, 1.0 / factor)
I tried that. something like this:
 1  2  3  4 `   public void theta1(double x, double y){      y = Math.pow(y,1/2);      x = Math.pow(x,1/2);      setTheta(Math.atan2(y, x));`

My Y and X are dependant on each other.  Since they are in a ratio, theta will always be the same if x and y are being modified by the same factor
Riven

« JGO Overlord »

Medals: 1336
Projects: 4
Exp: 16 years

 « Reply #3 - Posted 2010-08-04 19:56:25 »

Obviously, you have to 'adjust' the vector length, not the input values.

Besides that: 1/2==0 so your code doesn't work.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Nate

« JGO Bitwise Duke »

Medals: 167
Projects: 4
Exp: 14 years

Esoteric Software

 « Reply #4 - Posted 2010-08-05 05:35:25 »

Well, often lots of "practice" helps. Can't help you with the vector length though.

Roquen

JGO Kernel

Medals: 517

 « Reply #5 - Posted 2010-08-05 06:22:49 »

If you mean 'noisy' then you could start with a low pass filter:

x = f(x0+x1)-x0

where 'x0' is the previous filtered sample, 'x1' is the new sample and 'f' is the weight of the filter, on (0,1).
Pages: [1]
 ignore  |  Print

 nelsongames (19 views) 2018-04-24 18:15:36 nelsongames (17 views) 2018-04-24 18:14:32 ivj94 (608 views) 2018-03-24 14:47:39 ivj94 (54 views) 2018-03-24 14:46:31 ivj94 (402 views) 2018-03-24 14:43:53 Solater (66 views) 2018-03-17 05:04:08 nelsongames (111 views) 2018-03-05 17:56:34 Gornova (177 views) 2018-03-02 22:15:33 buddyBro (747 views) 2018-02-28 16:59:18 buddyBro (94 views) 2018-02-28 16:45:17
 ByerN 12x KaiHH 12x SHC 10x NuclearPixels 10x Zemlaynin 10x Guerra2442 10x Damocles 6x VaTTeRGeR 5x orangepascal 4x philfrei 4x ndnwarrior15 3x mesterh 3x ags1 3x Phased 2x CommanderKeith 2x delt0r 2x
 Java Gaming Resourcesby philfrei2017-12-05 19:38:37Java Gaming Resourcesby philfrei2017-12-05 19:37:39Java Gaming Resourcesby philfrei2017-12-05 19:36:10Java Gaming Resourcesby philfrei2017-12-05 19:33:10List of Learning Resourcesby elect2017-03-13 14:05:44List of Learning Resourcesby elect2017-03-13 14:04:45SF/X Librariesby philfrei2017-03-02 08:45:19SF/X Librariesby philfrei2017-03-02 08:44:05
 java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org