![]() |
Autonomous loop speed
How quickly does the code in the autonomous section execute? this is in user_routines_fast.c so does that mean it executes as fast as possible? If so, is there some way to limit it so it only executes once every 26.2ms?
thanks |
Re: Autonomous loop speed
Though the autonomous function is in user_routines_fast.c, it is only called every 26.2ms by main.c.
|
Re: Autonomous loop speed
I thought autonomous is called every 17 ms, and regular was every 26.2
|
Re: Autonomous loop speed
according to the comments in user_routines_fast.c in the User_Autonomus_Code function. it states that it is a 26.2 millisecond loop
Code:
while (autonomous_mode) /* DO NOT CHANGE! */ |
Re: Autonomous loop speed
In the User_Autonomous() function is a while loop that runs as fast as it can. Inside that is an if that is satisfied every time data is available each 26 ms. So you can place code inside the if to run it at the same rate as the normal user_routine, or you can place it outside the if (but still inside the while) to run it as fast as possible (like the normal user_routine_fast).
|
Re: Autonomous loop speed
Quote:
Lynn (D) - Team Voltage 386 Software |
Re: Autonomous loop speed
Quote:
|
| All times are GMT -5. The time now is 04:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi