View Single Post
  #1   Spotlight this post!  
Unread 17-06-2013, 23:00
tyler34 tyler34 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2012
Rookie Year: 2011
Location: Michigan
Posts: 11
tyler34 is an unknown quantity at this point
Trouble with limit switches

So basically we can't get a change in value when the limit switch is pressed.

We have one end of the limit switch wired to signal and the other to ground on the Digital Inputs on the Digital Sidecar.

We are using Java for our programming.
Heres the code pulled out from robotInit and teleopPeridodic:
Code:
private DigitalInput limit; 
limit = new DigitalInput(1);        
System.out.println("ingest switch: " + limit.get());
We tried connecting the ground a signal wires together without the limit switch, tried different cables, and different ports. Nothing seems to work.

If someone has any idea on what to try it would be helpful.
We are gonna try a new digital sidecar tomorrow and see if that works.