Skip to content

Update WPILibExtension to call stepTiming() after each simulated loop - #100

Merged
kcooney merged 2 commits into
mainfrom
kcooney/simulator-advance-clock
Dec 1, 2025
Merged

Update WPILibExtension to call stepTiming() after each simulated loop#100
kcooney merged 2 commits into
mainfrom
kcooney/simulator-advance-clock

Conversation

@kcooney

@kcooney kcooney commented Dec 1, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@cuttestkittensrule

Copy link
Copy Markdown
Collaborator

Re-running the CI real quick since the HAL crashed due to the race condition again.

@cuttestkittensrule cuttestkittensrule left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, but just to make sure this doesn't break any tests, I am going to test this against some of our code that uses this in testing

@kcooney
kcooney force-pushed the kcooney/simulator-advance-clock branch from ffe9ce2 to d606116 Compare December 1, 2025 06:45

@cuttestkittensrule cuttestkittensrule left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in on our 2025 robot code, and it seems to work fine. One thing that we should consider before merging is if we want to sleep for a different time based on how much has elapsed.

@kcooney
kcooney force-pushed the kcooney/simulator-advance-clock branch from d606116 to d4af35c Compare December 1, 2025 17:00
@kcooney
kcooney force-pushed the kcooney/simulator-advance-clock branch from d4af35c to 0638081 Compare December 1, 2025 17:02
@kcooney
kcooney merged commit 6e056a6 into main Dec 1, 2025
1 check passed
@kcooney
kcooney deleted the kcooney/simulator-advance-clock branch January 4, 2026 21:55
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.

2 participants