Go to Post Yellow bananas are the new red herrings. - artdutra04 [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 01-24-2009, 02:20 PM
Team1710's Avatar
Team1710 Team1710 is offline
Registered User
FRC #1710
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Kansas City
Posts: 95
Team1710 is an unknown quantity at this point
Limit Switch return value

In the process of programming our shooter turret, I realized we needed some limit switches in there. I looked up at the library, and it seems that the DigitalInput class is what we need.

I'm using the digitalInput get method, so after declaration my code looks like this:

Code:
limitSwitchLeft->Get()
Will this return a Boolean? I would assume its default would be false...when the limit switch is hit it would turn to true. I'm looking to impliment this into an if-else condition to use in limiting my turret.

Am I looking at this from the right direction?

Thanks!
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a limit switch to limit motion ManicMechanic Programming 16 12-20-2007 12:54 AM
limit switch wedellm Electrical 4 02-16-2007 01:01 PM
No value in digital ins using NASON pressure switch. Ari Allyn-Feuer Programming 1 02-18-2006 01:18 AM
Limit switch in easy c? chadbarbe Programming 6 02-02-2006 09:51 AM


All times are GMT -5. The time now is 09:43 AM.

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