View Single Post
  #2   Spotlight this post!  
Unread 11-09-2008, 03:28
rwood359 rwood359 is offline
Registered User
AKA: Randy
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Waialua, HI
Posts: 212
rwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to all
Re: Servo 'smoothing'

Quote:
Originally Posted by Bomberofdoom View Post
Kevin,

What I meant was does the processor really increment incount by putting that line inside an if statment.

But I presume it does, since eveyone is saying the code is correct.
The table at:
http://www.difranco.net/cop2220/op-prec.htm (see Note 2)
shows the precedence of operators.
In the IF statement, the compare will be evaluated, then incount will be incremented.