View Single Post
  #5   Spotlight this post!  
Unread 14-04-2010, 19:59
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: AUTONOMOUS PROBLEM

Digital inputs are pulled up (to a logic high... 1). When you short the signal line to ground the input will read as logic low, or 0.

Try doing
Code:
if(switch->Get() == 0) {...}

Last edited by Tom Bottiglieri : 14-04-2010 at 20:02.
Reply With Quote