|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |