![]() |
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. |
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.
|
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.
|
Re: main.c
whoops...I missed the while loop in user_routines_fast.c...
Anyway, thanks for letting me know |
| All times are GMT -5. The time now is 03:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi