Go to Post There is no exit strategy in FIRST - RoboMom [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 22-02-2004, 09:55
DemonYawgmoth's Avatar
DemonYawgmoth DemonYawgmoth is offline
Registered User
AKA: Artem Kochnev
FRC #1396 (Pyrobots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Staten Island, NY
Posts: 28
DemonYawgmoth is an unknown quantity at this point
Send a message via AIM to DemonYawgmoth Send a message via MSN to DemonYawgmoth
Neutral for joysticks isn't 127

The neutral position for our joysticks is not 127, and this is making us mess up a bit. For the left side, neutral is 165, and for the right, neutral is 193. What could be causing this, and how do we make it go back to the original 127 position?
  #2   Spotlight this post!  
Unread 22-02-2004, 10:07
DanL DanL is offline
Crusty Mentor
FRC #0097
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Somerville, MA
Posts: 682
DanL is just really niceDanL is just really niceDanL is just really niceDanL is just really niceDanL is just really nice
Send a message via AIM to DanL
Re: Neutral for joysticks isn't 127

Quote:
Originally Posted by DemonYawgmoth
The neutral position for our joysticks is not 127, and this is making us mess up a bit. For the left side, neutral is 165, and for the right, neutral is 193. What could be causing this, and how do we make it go back to the original 127 position?
I'm assuming since you're including numbers, the problem is the PWMs are neutral (solid yellow) when the values the RC outputs are 165 and 193, respectively - I'm assuming the problem isn't in the calibration of wheel of the joystick.

Sometimes the victors get a little-bit screwey and don't recognize the signal coming out of the RC correctly. There is a method to calibrate the actual victors. In page two of the IFI Victor 884 Users Manual, it has the instructions on what to do to calibrate the victor. After pressing a few things, you essentially move your joystick to full forward, full back, and the neutral position. The victor then detects what the signal coming out of the RC is at these positions and adjusts itself appropriately. Before you do this, though, I recommend you use the calibration wheel on the joystick to make sure when you move the joystick into neutral, the RC sees 127 as coming in.
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies
  #3   Spotlight this post!  
Unread 22-02-2004, 12:38
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: Neutral for joysticks isn't 127

Quote:
Originally Posted by DemonYawgmoth
The neutral position for our joysticks is not 127, and this is making us mess up a bit. For the left side, neutral is 165, and for the right, neutral is 193. What could be causing this, and how do we make it go back to the original 127 position?
If the neutral position is not 127 you can trim them by adjusting the wheel next to each axis on the joystick. Turn the wheel until both give you the 127 value you are looking for. Then find some heavy duty tape and hold them down so they won't move again

Note: Not the thumb wheel which you can optionally use as an input. The adjustment wheels.
  #4   Spotlight this post!  
Unread 22-02-2004, 12:45
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Neutral for joysticks isn't 127

Quote:
Originally Posted by MikeDubreuil
If the neutral position is not 127 you can trim them by adjusting the wheel next to each axis on the joystick. Turn the wheel until both give you the 127 value you are looking for. Then find some heavy duty tape and hold them down so they won't move again

Note: Not the thumb wheel which you can optionally use as an input. The adjustment wheels.
a small not, this year's joysticks do not have thumb wheels. instead, they have the hat switches on top, which are mapped to the pX_wheel axis.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #5   Spotlight this post!  
Unread 22-02-2004, 12:49
blindguyinanorg's Avatar
blindguyinanorg blindguyinanorg is offline
Matt Spencer
AKA: Sexy Beast
#1007 (Team Generals)
Team Role: Engineer
 
Join Date: Feb 2004
Location: Snellville GA
Posts: 93
blindguyinanorg has a little shameless behaviour in the past
Send a message via AIM to blindguyinanorg
Re: Neutral for joysticks isn't 127

if you havnt edited the printf function in your code you can use that to esaly see what values your joysticks are. just move the trim wheel till it reads 127 ish. the output screen for printf function is the window that pops up after loading a program
__________________
"No drugs, not even alcohol cause the fundementa ills of society. If we're looking for the sources of your troubles, we shouldn't test people for drugs, we should test them for stupidity, ignorance, freed and love of power" - PJ O'Rourke
  #6   Spotlight this post!  
Unread 22-02-2004, 19:32
DemonYawgmoth's Avatar
DemonYawgmoth DemonYawgmoth is offline
Registered User
AKA: Artem Kochnev
FRC #1396 (Pyrobots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Staten Island, NY
Posts: 28
DemonYawgmoth is an unknown quantity at this point
Send a message via AIM to DemonYawgmoth Send a message via MSN to DemonYawgmoth
Re: Neutral for joysticks isn't 127

we do have the printf function showing us a number of things through hyperterminal, and thats where we got the readings of 165 and 193 from.
  #7   Spotlight this post!  
Unread 22-02-2004, 19:36
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Neutral for joysticks isn't 127

adjust your trim tabs on the joysticks - the little black thumbnobs on the white base of the unit.
  #8   Spotlight this post!  
Unread 22-02-2004, 19:37
mightywombat's Avatar
mightywombat mightywombat is offline
bins? stacking?? NOOOOO!
AKA: Bill Rosemurgy
#0857 (Superior Roboworks)
Team Role: Programmer
 
Join Date: Dec 2003
Location: Houghton, MI
Posts: 93
mightywombat is on a distinguished road
Re: Neutral for joysticks isn't 127

i have found that this years joysticks really don't have that wonderful of a center position. we are using sticks from previous years.... other than the trim tabs being off you may need to do some scaling. what we do is this

#define left_MAX 254
#defing left_MIN 16

pwm01 = ((pwm01 - left_MIN) * 256) / (left_MAX-left_MIN);

this is the basic way we do it. i don't have the code with me but i know we break up the equation so we don't lose as much in the dividing so that the dividing is easier on the proc.
__________________
Bill Rosemurgy - Aspiring Programmer and Human Player (stack of 8 in <10 seconds...oh yeah... but I can't shoot for crap.)
www.team857.com
  #9   Spotlight this post!  
Unread 22-02-2004, 19:43
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Neutral for joysticks isn't 127

197 is not a sloppy center position problem - thats halfway to full power

and your code still wont help them if they dont adjust the trim tabs :^)
  #10   Spotlight this post!  
Unread 22-02-2004, 19:50
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: Neutral for joysticks isn't 127

what you might wana try is to write a dead zone into code...
if(p1_x > 115 && p1_x <135) {p1_x = 127;}
just a thought.
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #11   Spotlight this post!  
Unread 22-02-2004, 20:41
DanL DanL is offline
Crusty Mentor
FRC #0097
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Somerville, MA
Posts: 682
DanL is just really niceDanL is just really niceDanL is just really niceDanL is just really niceDanL is just really nice
Send a message via AIM to DanL
Re: Neutral for joysticks isn't 127

Quote:
Originally Posted by DemonYawgmoth
we do have the printf function showing us a number of things through hyperterminal, and thats where we got the readings of 165 and 193 from.
Yeah, sounds like its a calibration problem, not a programming fix - can you clarify what you mean by "neutral"? If those numbers are what your RC is outputting to make the victors solid yellow (neutral), then it definately sounds like your victors are just out of whack and need to be recalibrated.
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies

Last edited by DanL : 22-02-2004 at 20:43.
  #12   Spotlight this post!  
Unread 22-02-2004, 21:04
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Neutral for joysticks isn't 127

Use the dashboard app from IFI. The OI still spits to dashboard even if you don't have the RC on. Make sure the jumper is on OI
  #13   Spotlight this post!  
Unread 22-02-2004, 21:29
KevinB's Avatar
KevinB KevinB is offline
Registered User
AKA: Alum
no team
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2001
Location: AL
Posts: 188
KevinB will become famous soon enoughKevinB will become famous soon enough
Send a message via ICQ to KevinB
Re: Neutral for joysticks isn't 127

Calibrate the Victors using the Victor 884 calibration procedure. Basically you hold down the calibration button on the victor with an allen wrench or other small tool while you move the joystick from center to full forward to full backward and back to center. The Victor's LED should flash green once this procedure is complete.
  #14   Spotlight this post!  
Unread 22-02-2004, 21:56
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Neutral for joysticks isn't 127

I cannot discourage you enough not to mess with the calibration of the Victors.

Use the factory cals. The other way lies madness!

I am serious. Rescale your joysticks in code if you have to but I think you will be very very sorry if you start messing with the cals on the Victors.

There are lots of good reasons not to recal the Victor, but one of the best is that if you ever blow a Victor and replace it you will have to recal, and probably right before the championship round, if Murphy's Law holds.

The non-centering joystick is easy to solve in software, stay away from the Cal button on your Victors...

Joe J.
  #15   Spotlight this post!  
Unread 22-02-2004, 23:20
TimeOut's Avatar
TimeOut TimeOut is offline
Registered User
AKA: Sean Kelly
FRC #0499 (The Toltechs)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: San Antonio, TX
Posts: 50
TimeOut is on a distinguished road
Re: Neutral for joysticks isn't 127

I think the problem that they have though is that the 'center' is sooo far off that they are losing some resolution. If the center was at 135 instead of 127; it's not that big a deal. But, when they are talking 190 something being a neutral then the joystick becomes very sensitive; even with scaling.

What specific things have been observed with the recal of Victors that is negative?

Sean
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
variable? manodrum Programming 11 01-04-2003 17:20
Change to Initializing Inputs and Outputs Jferrante Programming 4 07-01-2003 11:36
programming gear switing Amadkow Programming 5 16-02-2002 18:07
Shifting Gears -- Anton Abaya Technical Discussion 26 22-01-2002 21:49
switching joystick axis????? team222badbrad Technical Discussion 9 16-01-2002 23:07


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

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