Skip to content

fix to run loop exactry at 150 msec #545

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

Open
wants to merge 1 commit into
base: eye_display
Choose a base branch
from

Conversation

k-okada
Copy link
Member

@k-okada k-okada commented Jul 3, 2025

Currently the loop() function sleeps for 100 ms with the delay(100) command, but the time taken to execute the rest of the code is not fixed and will vary with communication and other factors.

With this modification, it is now possible to calculate the sleep time required to execute the loop() function exactly with a loop period of 150[ms].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant