Go to Post I've determined that the only thing rumors are good for is putting your knickers in a twist. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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
  #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
 


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 13:39.

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