Thread
:
Single Click On/Off Using the Trigger in EasyC
View Single Post
#
2
30-05-2007, 20:52
Brad Voracek
.999~=1
FRC #0399 (Eagle Robotics)
Team Role: Alumni
Join Date: Jan 2006
Rookie Year: 2005
Location: Lancaster, CA (SoCal)
Posts: 328
Re: Single Click On/Off Using the Trigger in EasyC
I've never written C where && means both values are equal to the value on the right of the ==. I've always done it if (p1_sw_trig == 0 && n == 0)...
Maybe try that?
__________________
.999~ (Repeating) is equal to one (1).
Team 399 - Eagle Robotics
Brad Voracek
View Public Profile
Find all posts by Brad Voracek
Find CD-Media Photos by Brad Voracek
Find CD-Media Papers by Brad Voracek