|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Clark
very nice baseline code. You used 'stepnum' to sequence the same way I did in my auton SW. couple comments. you left a debug statement intact - that will slow the cycle times way down you have no ramping between changes in motor speeds (unless I missed it) If you switched the PWMs on our bot from 0 to 254 in one cycle the gearheads would spleen you with the jagged remains of the tranny shafts! your timing is pretty long (120 counts is about 3 seconds) - if you have a fast bot then shorten the counts down, try it first, and then adjust as needed. Try driving your bot with the joystick first to get a rough idea of how long each step will take, and use 40 counts for each second - that will get you close. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2-week FIRST summer program @ WPI | ColleenShaver | General Forum | 20 | 31-05-2009 03:02 |
| White Paper Discuss: 2003 Automated Dead Reckoning Test Code | CD47-Bot | Extra Discussion | 10 | 07-09-2005 11:25 |
| Fried program slots? | Jeff Waegelin | Programming | 18 | 19-03-2003 18:08 |
| Autonomous Mode Strategy | Brian48216 | Programming | 27 | 23-01-2003 14:47 |
| Ahh! Program trick confusing! | archiver | 2001 | 9 | 24-06-2002 02:26 |