-
Couldn't load subscription status.
- Fork 28
I-controller for wait_until lag #413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
This looks like promising work I have a few questions:
A scenario that would trigger this is I don't see why we would want to update the control_value here, we do not have any information regarding the "wakeup overhead" which is what we want to measure and account for. |
|
Thanks for the feedback @erlingrj
|
|
|






This PR implements an I-controller for wait_until function internal lag, as discussed in #332. Currently the I-controller's gain is only configured for Linux based platforms, so the other platforms zero out the calculated error control value. The following is the pseudocode of the updated
wait_untilfunction:I have experimented with different
K_ivalues, and it turns outK_i = 1causes the lag to oscillate between 60 usec and ~0,K_i < 1just delays the start of the oscillation,K_i = 2causes unstable oscillation, andK_i = 1.5stabilizes the lag. I'm currently not sure why 1.5 works, so if there is any insight you have it would be highly appreciated.