View Single Post
  #2   Spotlight this post!  
Unread 16-02-2011, 16:48
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: How does DriverStation.getInstance().getDigitalInput(1) work?

Quote:
Originally Posted by xinchi.he View Post
Hi.

I am confused with this method. For the lane tracking, why we need to receive digital values from driver station? How does this work? I am testing our sensors with the example code that provided by the templates. I can receive the changing values with DigitalInput.get(), but the output for those three sensors with DriverStation.getInstance().getDigitalInput() are all true without changing.

I am really confused. I need your help. Thank you!
The sensors might be a reverse bool, where if they're false it strikes up a nice ol' conversation with your motors (if you programmed them that way.)

That's just a complete guess, though. Haven't tried looking through the code at all.
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
Reply With Quote