Go to Post Are we really that close-minded that we have to insult other teams that deviate from what we percieve to be right? Giving an opinion and insulting someone are far from each other. - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2006, 18:20
CronosPrime1 CronosPrime1 is offline
Registered User
FRC #0321
 
Join Date: Jan 2006
Location: Hyperspace
Posts: 53
CronosPrime1 is an unknown quantity at this point
Dead Zones

Greetings,

Can anyone tell me how to change the dead zone that exists by default? That is, I know any input between pretty much 120 and 140 is read as neutral. I don't necessarily want to remove that, but if I did, how would I do so? Also, is anyone else changing their dead zone?
__________________
  #2   Spotlight this post!  
Unread 30-01-2006, 19:47
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Dead Zones

The Victor's dead zone can be compensated for in code if you want. Just add 7 or so to the value you're sending to if if it's more than 127, and subtract 7 or so from the value if it's less than 127.
  #3   Spotlight this post!  
Unread 30-01-2006, 19:55
CronosPrime1 CronosPrime1 is offline
Registered User
FRC #0321
 
Join Date: Jan 2006
Location: Hyperspace
Posts: 53
CronosPrime1 is an unknown quantity at this point
Re: Dead Zones

What is the victor's dead zone?
__________________
  #4   Spotlight this post!  
Unread 30-01-2006, 19:57
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: Dead Zones

it may be better to expontially map the joysticks so that there is no dead zone but it is less sensitive at lower values
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
  #5   Spotlight this post!  
Unread 02-02-2006, 19:35
colman77
 
Posts: n/a
Re: Dead Zones

We use a lookup table to "curve" our drive outputs...
I don't remember the syntax for defining tables offhand; if you need it let me know and I'll look it up tomorrow.
if you put this in your code...

pwm01 = lookuptable[p1_y];

Say you've moved the joystick slightly, and p1_y = 132. This line will define pwm01 as the 133rd value in your lookup table (since lookuptable[0] is the first number in the list).
You could make that 133rd value anything you want... indeed, you could make all table values from 90 to 170 equal to 127, making a freaking huge dead zone.

Hope that helps
  #6   Spotlight this post!  
Unread 02-02-2006, 20:33
mogunus mogunus is offline
Registered User
AKA: Luciano DiFalcone
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2003
Location: RI
Posts: 19
mogunus is an unknown quantity at this point
Re: Dead Zones

Yeah, we do the same thing as the guy in the above post. "Smoothed" lookup table makes the robot move nicer.
__________________
... one of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
-- Robert Firth
  #7   Spotlight this post!  
Unread 02-02-2006, 21:53
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Dead Zones

Quote:
Originally Posted by CronosPrime1
What is the victor's dead zone?
It's the range of PWM values that result in the Victor staying in "neutral". I think it's about 8 or 9 counts either side of 127. I saw it defined on the IFI web site somewhere, but I'm not sure where to find it right now.
  #8   Spotlight this post!  
Unread 02-02-2006, 22:06
aaeamdar's Avatar
aaeamdar aaeamdar is offline
Post-A-Holic
AKA: Paul Dennis
FRC #1719 (The Umbrella Corp)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Baltimore, MD
Posts: 231
aaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant future
Re: Dead Zones

Quote:
Originally Posted by Alan Anderson
It's the range of PWM values that result in the Victor staying in "neutral". I think it's about 8 or 9 counts either side of 127. I saw it defined on the IFI web site somewhere, but I'm not sure where to find it right now.
I don't know about that. Our initial tests (just playing around with it) seemed to indicate that there was effectively no dead zone. We set ours to 15. We also used the look table, but as seen in the camera code thread, make sure that it's
Code:
rom const unsigned char lookTable[XXX] = {x, y, z};
and not this:

Code:
 unsigned char lookTable[255];
Ooops. That story didn't end well.

Paul Dennis
  #9   Spotlight this post!  
Unread 02-02-2006, 22:19
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Dead Zones

The main Victor page describes the deadband:
Quote:
The Victor 884 has a deadband with respect to the PWM signal, which is approximately 117 to 137 (127 center). Any PWM signal within the deadband results in no output (neutral).
A little more detail is given in the IFI Tech Support forum.
Closed Thread


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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
White Paper Discuss: 2003 Automated Dead Reckoning Test Code CD47-Bot Extra Discussion 10 07-09-2005 11:25
Dead Reckoning Ryan Cumings Programming 3 24-02-2004 10:57
What to do with autonomous Rickertsen2 Programming 48 17-02-2004 16:22
dead robot in the finals? srawls Rules/Strategy 2 24-03-2002 14:44


All times are GMT -5. The time now is 17:54.

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