Skip to content

Add an option in @InitWPILib to change the period - #132

Merged
kcooney merged 3 commits into
mainfrom
kyle/config-period
Feb 14, 2026
Merged

Add an option in @InitWPILib to change the period#132
kcooney merged 3 commits into
mainfrom
kyle/config-period

Conversation

@cuttestkittensrule

Copy link
Copy Markdown
Collaborator

This allows the user to specify a different loop period than the default. It is currently named periodicPeriod, but there might be a better name for it; I am open for name suggestions.
To be a bit more specific, this allows changing the time incremented between periodic runs when using CommandTester, which emulates time advancing like the command was run normally on the robot's update loop. The default period is the same period that was used before, TimedRobot#kDefaultPeriod.

`CommandTester` instance.

The current name is `periodicPeriod`, but there might be a better name
that I can't think of right now

@kcooney kcooney left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Love the tests!

@kcooney
kcooney merged commit 4da8fa6 into main Feb 14, 2026
1 check passed
@kcooney
kcooney deleted the kyle/config-period branch February 14, 2026 01:19
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