Go to Post Clearly they're releasing the game hint on 12/21/12 because they know the world's going to end, and they want to keep FIRSTers happy and distracted until the very end. - Kevin Sevcik [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 02-02-2004, 14:29
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
OI and analog: Zero value

Get this: no joystick (infinate resistance, no voltage) has a value of 127.
Now take a potentiometer and wire it to a analog port. Turn it all the down.
It will read: 127, 0, ..., 127, ..., 255. A little heads up! Or is this unusual?
  #2   Spotlight this post!  
Unread 02-02-2004, 16:00
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: OI and analog: Zero value

Quote:
Originally Posted by Astronouth7303
Get this: no joystick (infinate resistance, no voltage) has a value of 127.
Now take a potentiometer and wire it to a analog port. Turn it all the down.
It will read: 127, 0, ..., 127, ..., 255. A little heads up! Or is this unusual?
It sounds like you connected ground to one side of your pot and +5 to the other. If so, you're supposed to leave the "ground" side unconnected. This is explained on page 5 of the FRC OI guide at IFI's site. From that document, "In the event that an analog input is less than 0.05V, a value of 127 will be generated." This is on purpose so that if nothing is connected to a joystick port, an internal pulldown resistor in the OI will pull the analog pins down to 0 volts and the OI software will translate that to 127. This way, if you accidentally unplug your drive joystick (for example), your robot won't start running full tilt backwards!
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


All times are GMT -5. The time now is 02:31.

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