|
Re: Broken 360 controller needs a dead zone
Creating a deadzone should be fairly easy. I would use a select VI. To feed the selector I would run the input through an absolute value then a "greater than" VI. For the True part of the Select VI you would have the unaltered input value and for the False you would feed 0.
I will suggest an alternative however. Depending on the joystick behavior, you may want to trim it instead of make a deadzone. If it has a constant or near constant offset, you can add or subtract the appropriate value before using the input to correct for the drift.
EDIT: Alternative suggestion removed due to Chris' post below.
__________________
2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Last edited by Vikesrock : 08-05-2011 at 21:34.
|