Thread
:
Which is faster?
View Single Post
#
2
26-02-2005, 23:25
Alex1072
Registered User
AKA: Alex
#1072 (Harker Robotics Team)
Team Role: Leadership
Join Date: Jan 2003
Rookie Year: 2003
Location: San Jose
Posts: 110
Re: Which is faster?
Quote:
Originally Posted by
Gary Bonner
Code:
if p1_y > 125 Pwm1_green = 1; else Pwm1_green = 0;
or
Code:
Pwm1_green = p1_y / 126;
I would say #2, but i'm not an expert on optimization.
__________________
--------------------------------------
Alex
President
Team 1072 Harker Robotics
Alex1072
View Public Profile
Visit Alex1072's homepage!
Find all posts by Alex1072
Find CD-Media Photos by Alex1072
Find CD-Media Papers by Alex1072