Go to Post I think this post is a lot of words saying "My name is Billfred and I approve MiniBots 2017" - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 20-01-2008, 16:23
penguain penguain is offline
Registered User
AKA: Barry Preston
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2007
Location: Bishop Miege High School
Posts: 18
penguain is an unknown quantity at this point
Robot Drive for 10 seconds

unsigned int timer = 0;

//Forward for 10 seconds
if(timer < 382){
pwm01 = pwm02 = 225;
timer++;
}

since the autonomus loops every 26.2ms
10 / 0.0262 = ~382

would this work to drive the robot forward for 10s/


thanks
__________________
2007 Greater Kansas City Regional Champions
2008 Greater Kansas City Regional Finalists
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
where can I find the code for the first 15 seconds? CompMaster Programming 2 16-02-2005 16:23
counting in seconds for the autonomous mode?? Pattyta Programming 22 31-03-2004 12:55
pic: Four Seconds CD47-Bot Extra Discussion 9 30-03-2003 15:31
Numbers for thought: Are 10 black balls worth 30 seconds? archiver 2001 6 23-06-2002 22:42
about how Drive Train push the robot... shouldn't the force accelerate the robot? Ken Leung Technical Discussion 12 26-11-2001 09:39


All times are GMT -5. The time now is 09:23.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi