|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#33
|
||||||
|
||||||
|
Quote:
if rc_sw1=rc_sw2 then PWM1=254 : PWM2=254 : goto endTracking if rc_sw1=1 then PWM1=0 : PWM2=254 : goto endTracking PWM1=254 PWM2=0 endTracking: Here's the guts of my dead-reckoning (I don't remember the actual numbers): counter=counter+1+delta_t SELECT counter CASE 0 to 100 'do something CASE 101 to 200 'do something else CASE ELSE 'do yet another thing ENDSELECT Could you please explain what you mean by "its remembering what happend over the last X amount of seconds that would take a bit of memory" as I'm not quite sure why you need to "remember" anything if you are just using a normal counter. Anyways, I sent you a PM about that line of code and my (late-night)reasoning behind it. --Rob |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |
| Autonomous Code From Experience | EbonySeraphim | Programming | 7 | 14-03-2003 21:56 |
| Autonomous code tutorial | miketwalker | Programming | 2 | 23-02-2003 12:28 |
| Autonomous code | PBoss | Programming | 7 | 14-01-2003 15:29 |
| Autonomous Code | Adrian Wong | Robotics Education and Curriculum | 1 | 18-11-2002 22:34 |