![]() |
controller sensitivity
Our team is using the Xbox 360 controller to drive the robot, but the analog sticks are very sensitive, like when we barely press it it'll take off. Is there any way to lower the sensitivity of the controller?
|
Re: controller sensitivity
You can add some acceleration/deceleration code to slowly ramp up the output of the PWM. You could also increase what the neutral value of the PWM is. I.E. if you push it your joystick full foward, then it goes to 255 in some amount of time instead of instantly.
|
Re: controller sensitivity
As far as joystick sensitivity goes, our team has been using this:
Code:
long ramping (unsigned char ramp)http://www.chiefdelphi.com/forums/at...9&d=1201127844 Hope that helps. |
Re: controller sensitivity
Quote:
|
Re: controller sensitivity
Sorry, this is the working link:
http://www.chiefdelphi.com/forums/at...9&d=1201127844 So, this a cubic function. It sort of is like an exponential growth, but even in the negative region. What it's doing is taking the cube and then dividing by the square of neutral. It results in this: When the joystick is at half forward, the speed is cut in four. However, at full forward, it produces the full speed. With normal division, your max speed is cut. This eliminates the issue. |
Re: controller sensitivity
We're using a very similar function in our code, and an x-box controller and it works great... the best way to look at it's capabilities is to run some numbers through it:
Code:
in out |
| All times are GMT -5. The time now is 23:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi