View Single Post
  #10   Spotlight this post!  
Unread 17-02-2008, 18:43
Kendal Reed's Avatar
Kendal Reed Kendal Reed is offline
Hatless Hacker
FRC #0007 (007)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2005
Location: Parkville High
Posts: 22
Kendal Reed will become famous soon enoughKendal Reed will become famous soon enough
Send a message via AIM to Kendal Reed
Re: Suffield Shakedown observations...

Quote:
Originally Posted by Bongle View Post
I cannot believe so many teams didn't go for the drive-straight autonomous mode. This is the first year I've been in FIRST where you can actually get some permanent points simply for driving straight. If you have 3 robots that can do nothing else, having all 3 of them drive across the first line is 1.5 hurdles of points. DO IT. This is certainly something I see teams helping with at a competition pre-match: "hey do you have a drive-straight autonomous mode?" "no?" "ok here you go".
If you're having trouble with the code, here's some:
Code:
pwmLeft = pwmRight = 127;
if(time < AMOUNT_OF_TIME_TO_DRIVE) // experimentally determined, but 100 might be a good bet
{
  pwmLeft = pwmRight = 190;
}
time++;
Um... what kind of drive system are you expecting? I can't think of any where it would make sense to use the same value for the left and right PWMs. Most systems have the left and right motors facing in opposite directions and would therefore use value pairs where one side's value is equal to 255 minus the other's.
__________________
And I think it's gonna be a long, long time... till kickoff brings us round again to find... we're not the same six weeks a year... We're all robot men.. burning out our brains; we love it here...

Yesterday is history.
Tomorrow is a mystery.
Today is a gift;
that's why we call it the present.


Good heads, Fezzik. Bad heads, Speed Racer. One robot, two faces.
Reply With Quote