Skip to content

fix to run loop exactly at 150 msec#545

Closed
k-okada wants to merge 1 commit intojsk-ros-pkg:eye_displayfrom
k-okada:eye_display_exact_loop
Closed

fix to run loop exactly at 150 msec#545
k-okada wants to merge 1 commit intojsk-ros-pkg:eye_displayfrom
k-okada:eye_display_exact_loop

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].

@k-okada k-okada changed the title fix to run loop exactry at 150 msec fix to run loop exactly at 150 msec Jul 30, 2025
@k-okada k-okada closed this Jul 30, 2025
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