Thread: Digital Input?
View Single Post
  #2   Spotlight this post!  
Unread 30-01-2009, 14:51
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: Digital Input?

To read the value of the DigitalInput object, you can call the Get() member function.

This was undocumented up to and including update 2 - not sure if that's been fixed in update 3.

In general, WPILib has some undocumented functions and types currently -- look at the header file for the class (DigitalInput.h) in this case to see the complete interface. If using the example template to build your program, the headers can be easily found under the Include node in the files tree.
Reply With Quote