View Single Post
  #2   Spotlight this post!  
Unread 26-02-2005, 23:25
Alex1072 Alex1072 is offline
Registered User
AKA: Alex
#1072 (Harker Robotics Team)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: San Jose
Posts: 110
Alex1072 is an unknown quantity at this point
Send a message via AIM to Alex1072 Send a message via Yahoo to Alex1072
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