Go to Post 30 point hang is brutal. Those who say it is easy are not thinking it through or are way smarter than the rest of us ... - Paul Copioli [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 2001
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 23-06-2002, 23:50
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
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



__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 18:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi