Go to Post Soon, some of those teams will learn to rise about current and former powerhouses. - Akash Rastogi [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-10-2006, 12:48
jalburty jalburty is offline
Joe Alburty
AKA: Joe Alburty
FRC #1763 (Paseo Pirates)
Team Role: Mentor
 
Join Date: Oct 2006
Rookie Year: 2005
Location: Kansas City
Posts: 25
jalburty will become famous soon enoughjalburty will become famous soon enough
Send a message via ICQ to jalburty
Autonomous tutorial

Does anyone recall a set of examples on autonomous programming on this website? I saw it a few months ago, but cannot find it again. Several exercises were given demonstrating the use of a counter variable to control the actions of the robot at certain time intervals. It also talked about how to convert from loop intervals to seconds.

For example, it went something like this:
//user_routines.c
int counter;
.
.
void user_routines(void);
int t;
.
.
counter = counter + 1; //loop count
t = (counter / 28); //seconds

if (t < 280) { //go straight for ten seconds
pwm01 = 200;
pwm02 = 200;
{
else if (t > 280) { //turn left at 10 seconds
pwm01 = 200;
pwm02 = 127;
}

etc.

I thought it was a good exercise and would like to use it in a lesson plan.

Thanks.
  #2   Spotlight this post!  
Unread 12-10-2006, 14:57
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,277
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Autonomous tutorial

http://www.chiefdelphi.com/media/papers/1590

Don't know if that was what you were talking about but it is essentially the same thing. That is saved on all of the computers where we work, it is great to teach new programmers with.

If that doesn't help just post what kind of stuff you are looking for and I am sure some of us could write code for you, it would be alot easier than you doing it all your self.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
Closed Thread


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
making of a tutorial Nimmy 3D Animation and Competition 1 31-03-2006 11:47
Tutorial Sites Mike IT / Communications 2 20-05-2005 00:00
PHP Tutorial AIBob Website Design/Showcase 0 30-01-2005 23:16
html Tutorial AIBob Website Design/Showcase 9 30-01-2005 17:30
Autonomous code tutorial miketwalker Programming 2 23-02-2003 12:28


All times are GMT -5. The time now is 01:19.

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