Go to Post Chief Delphi is special. ... Self-police please. - PayneTrain [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2009, 13:47
boris boris is offline
Registered User
FRC #2626
 
Join Date: Jan 2009
Location: Canada
Posts: 3
boris is an unknown quantity at this point
Digital Input?

I made myself an digital input object to use with a limit switch.
The channel et cRIO slot are set properly but I don't have a clue on how to get the value from the digital input...
Reply With Quote
  #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
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Input Power AHepperla Electrical 5 15-02-2008 15:34
Auton digital input ten3brousone Programming 7 20-03-2005 22:23
digital input question... Kevin Karan Programming 9 12-04-2004 07:34
counting digital input CharlieWilken Programming 9 22-03-2004 19:56
Robot Digital Input Mike Norton Technical Discussion 5 16-01-2003 14:31


All times are GMT -5. The time now is 12:34.

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