Go to Post No email, no telephone, no FIRST. I can't wait.... - 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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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!
 


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:58.

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