|
Re: How to Auto Calibrate
You can write a relatively simple algorithm that keeps watching for higher highs and lower lows and calculates the midpoint (average) value and watches how much displacement there is above and below this midpoint to scale whatever your joystick input is.
However, if you don't trim the joysticks, you could have a lot of meaningless joystick travel, such as the last 15 degrees of travel all being '255'.
-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
|