View Single Post
  #4   Spotlight this post!  
Unread 04-03-2009, 22:41
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: DriverStation::GetAnalogIn - what range?

Quote:
Originally Posted by oddjob View Post
From the C++ reference manual:
DriverStation::GetAnalogIn returns the analog voltage on the input. The analog values are returned as UINT32 values....

Let's keep it simple, ignoring noise:
1) when an analog input is at ground, what value is returned?
0

Quote:
Originally Posted by oddjob View Post
2) when an analog input is at +5V, what value is returned?
1023

We are using these with version WPILib 3.0, and have tested and used on our production bot.

Not that this is the intended behavior, but that is what it returns.
Reply With Quote