Go to Post We need to all remember we are no better than our fellow man, no matter what job we all hold, what socio-economic status that's involved, or anything. Plain and simple, we're all fellow travelers on this pale blue dot called Earth. - trobots.com [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 31-01-2011, 14:59
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Photoswitches flashes true but then stays false

Ok, so we were testing out the photoswitches.
The wiring is this:
Brown the positive
Blue to negative
Both on the power distributor with a 20 amp circut breaker
White to port 1 in the digital I/O of the digital sidecar
Basically what happens is that we hit enable, the value flashes true (we have the value printed to the DriverStationLCD) and then stays false.
Here is my code so far
Code:
DigitalInput tracker = new DigitalInput(1);
teleopPeriodic(){
DriverStationLCD.getInstance().println(Main6, 1, ""+tracker.get());
DriverStationLCD.getInstance().updateLCD();
}
__________________
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 09:45.

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