|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
|||
|
|||
|
Re: dead zone
Posted by Joe Ross at 1/31/2001 2:59 AM EST
Engineer on team #330, Beach Bot, from Hope Chapel Academy and NASA/JPL , J&F Machine, and Raytheon. In Reply to: Re: dead zone Posted by Josh Vetter on 1/30/2001 10:40 PM EST: : How do you create the dead zone? We are a rookie team, and need all the programming help we can get. There are many different ways to program a dead zone. The simplest (but not always the best) is to use an if statement. in pseudo-code: if joystick is greater than 117 AND joystick is less than 137 then joystick = 127 127 is the neutral position, so if the joystick value is ever +/- 10 from the neutral position, then the robot won't move. out team has found that a value of +/- between 5 and 10 works the best. There are a few problems with this method. If you can find them, then you probably don't need help developing a dead stick routine ;-) You should also read the whitepaper on filtering the joysticks availible from innovationfirst.com. It contains a "dead stick" routine among other things |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PBASIC Syntax Question | Raven_Writer | Programming | 4 | 20-08-2003 08:07 |
| Question Obtaining Pbasic 2.5 | PyroPhin | Programming | 3 | 18-01-2003 01:26 |
| pbasic question | Mike375 | Programming | 14 | 15-01-2003 06:54 |
| PBasic Question | Melissa H. | Programming | 28 | 17-11-2002 18:53 |
| Another PBASIC Question | Ian W. | Programming | 4 | 31-01-2002 21:36 |