|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
main.c
in the main.c
Quote:
if(autonomous_mode) { User_Autonomous_Code(); } else { Process_Data_From_Master_uP(); } otherwise it will be executing Process_Data_From_Master_uP() and then User_Autonomous_Code() in auton, every loop, thus eating up a lot of processor time. Last edited by 6600gt : 28-08-2006 at 17:17. |
|
#2
|
||||
|
||||
|
Re: main.c
If you take a look at User_Autonomous_Code() in user_routines_fast.c, you'll notice that there is a loop inside the funciton that the controller will not leave until autonomous is over. So no, it shouldn't be since the program can't return to execute Process_Data_From_Master_uP() until autonomous has ended.
|
|
#3
|
|||||
|
|||||
|
Re: main.c
It's also worth mentioning that getdata() isn't called (and the autonomous flag set) until Process_Data_From_Master_uP() is called. Personally, this is a bug to me. Of course, I've also changed that layout anyway, so it doesn't bug me.
|
|
#4
|
||||
|
||||
|
Re: main.c
whoops...I missed the while loop in user_routines_fast.c...
Anyway, thanks for letting me know |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rewriting main loop | Max Lobovsky | Programming | 4 | 04-01-2005 18:35 |
| Editing Main.c | Astronouth7303 | Programming | 22 | 20-02-2004 16:45 |
| Main Circuit Breaker | Yan Wang | Electrical | 6 | 20-02-2003 10:23 |
| Main Stage | archiver | 2001 | 3 | 24-06-2002 03:06 |
| main driver | Kaitlin Palmer | Off-Season Events | 0 | 09-04-2002 21:26 |