Thread
:
AUTONOMOUS PROBLEM
View Single Post
#
5
14-04-2010, 19:59
Tom Bottiglieri
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
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
.
Tom Bottiglieri
View Public Profile
Visit Tom Bottiglieri's homepage!
Find all posts by Tom Bottiglieri
Find CD-Media Photos by Tom Bottiglieri
Find CD-Media Papers by Tom Bottiglieri