View Single Post
  #1   Spotlight this post!  
Unread 12-02-2013, 23:06
skidad68 skidad68 is offline
Registered User
FRC #2506
 
Join Date: Feb 2013
Location: United States
Posts: 4
skidad68 is an unknown quantity at this point
DigitalInput.Get() always returns zero

...well, almost always.

I'm using the IterativeRobot template and polling a DigitalInput within the AutonomousPeriodic() function.

I have a NO switch wired between GND and SIG on sidecar digital input #1.

The very first time through the loop, the call to Get() returns the correct value corresponding to the switch state.

Every time after that, it always returns zero, regardless of the state of the switch.

What is my issue, hardware or software?
Reply With Quote