Thread: null zone
View Single Post
  #6   Spotlight this post!  
Unread 14-02-2004, 10:02
Xufer's Avatar
Xufer Xufer is offline
8 Seasons and as stable as ever
AKA: Working, 2/4 degrees complete still schooling...
FRC #1740 (The Cyber Colonels)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Waterford, CT
Posts: 231
Xufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to behold
Send a message via AIM to Xufer Send a message via MSN to Xufer Send a message via Yahoo to Xufer
Re: null zone

As promised I said id post it in the morning and its morning... Im not exactly sure if it works yet i cant tels the speed untill i can use it on the "real" robot which is getting some "fine" tuning. Im going to go "program" things...

COFFEE POT... oh its too early.

Code:
pwm01 = p1_y;
if (p1_y >= 120 && p1_y <= 133)
     {pwm01 = 127;}
else if (p1_y < 120 && p1_y  > 133)
     {pwm01 = 1/1635.6 * p1_y * p1_y - 0.16149181 * p1_y * p1_y + 9.10002;}

/******************/

          pwm02 = p2_y;
if (p2_y >= 120 && p2_y <= 133)
     {pwm02 = 127;}
else if (p2_y < 120 && p2_y  > 133)
     {pwm02 = 1/1635.6 * p2_y * p2_y - 0.16149181 * p2_y * p2_y + 9.10002;}
__________________


If saftey is first and i put FIRST ahead of everything, then i must be the safest guy in the world.

Team 521 Alumni -- Team 1740 Mentor-- Go Go 1740!
Sometimes I think I've been doing this too long and other times I think I haven't done this enough... but all the times I'm sure I'm crazy
Photonics, It's Your Future

Last edited by Xufer : 14-02-2004 at 10:36.