Timer Based Rate Group Drivers #3694
LeStarch
announced in
Call for Comments
Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The standard implementation of a timer-driver rate group driver is the following pseudo-code:
The execution context of this is within the
mainthread.The inner two lines must be within a timer component. The question is should the
while (true)be within the component or placed in themainfunction?If placed within the component, then the component owns the
mainprogram loop. Users cannot adjust what is done. However, it does mean the implementation of loop-until-stop can be hidden in the component.If placed within the main loop, users can "add" steps to the main loop, but are required to handle the stop functionality for system shutdown.
Beta Was this translation helpful? Give feedback.
All reactions