|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
autonomous code placement
I'm guessing all autonomous code will go in the section marked for it in the user_routines_fast. Are we being stupid putting line tracking code in here since the statements for sensor input like
if(rc_dig_in06 == 0) pwm=255; don't work for us in this section while a simple pwm=255; works fine |
|
#2
|
||||
|
||||
|
Re: autonomous code placement
not all autonomous code goes in user_routines_fast - anything that is going to be acting on sensor input should probably just go in user_routines, as the sensor input is only updated once per user_routines call. put processing that is not sensor-dependent in user_routines_fast.
|
|
#3
|
|||||
|
|||||
|
Re: autonomous code placement
If you fell REALLY ambitious, You can modify void Main() so that it runs through everything twice: once for Autonomous, then again for user. The worse that could happen is that it screws with your controller and your robot self-destructs
. Serriously, the only thing you don't download over is eeprom, and that's not really used much (I think). If you just download the regular default code, it should work fine. It would essentially create 2 programs. I would put Autonomous code in sepperate files. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| InfraRed autonomous code ... | mtrawls | Programming | 1 | 11-01-2004 00:25 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |
| 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 |