|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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();
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|