Go to Post Meh, wear safety glasses. - Mike Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-12-2008, 05:45
beefy1 beefy1 is offline
Registered User
None #2669
 
Join Date: Dec 2008
Location: Israel
Posts: 12
beefy1 is an unknown quantity at this point
Limit switches(in C++)

how to get the value of the limit switch(pressed or not) through c++ wpilib? thanks.
  #2   Spotlight this post!  
Unread 24-12-2008, 09:16
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Limit switches(in C++)

What is this limit switch connected to? A digital input or a jaguar?
  #3   Spotlight this post!  
Unread 24-12-2008, 14:59
beefy1 beefy1 is offline
Registered User
None #2669
 
Join Date: Dec 2008
Location: Israel
Posts: 12
beefy1 is an unknown quantity at this point
Re: Limit switches(in C++)

DIGITAL
  #4   Spotlight this post!  
Unread 24-12-2008, 15:27
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Limit switches(in C++)

Check out DigitalInput.h

Code:
DigitalInput *limitswitch = new DigitalInput(x); <- x is the DI location
limitswitch->Get();
Closed Thread


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
Limit Switches ChrisR_522 Programming 2 25-01-2008 08:04
Alternative to limit switches? RbtGal1351 Electrical 27 10-12-2005 15:30
limit switches stephenthe1 Programming 28 11-05-2005 16:37
Limit Switches help. Xufer Programming 9 21-04-2004 21:21
Limit switches Team168 Programming 8 10-02-2003 16:22


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

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