[wpilib] Rename TimedRobot constants to all caps

This commit is contained in:
Peter Johnson
2026-03-17 16:42:32 -07:00
parent 48868020a9
commit 09be21c319
7 changed files with 11 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ namespace wpi {
class TimedRobot : public IterativeRobotBase {
public:
/// Default loop period.
static constexpr auto kDefaultPeriod = 20_ms;
static constexpr auto DEFAULT_PERIOD = 20_ms;
/**
* Provide an alternate "main loop" via StartCompetition().
@@ -48,7 +48,7 @@ class TimedRobot : public IterativeRobotBase {
*
* @param period The period of the robot loop function.
*/
explicit TimedRobot(wpi::units::second_t period = kDefaultPeriod);
explicit TimedRobot(wpi::units::second_t period = DEFAULT_PERIOD);
/**
* Constructor for TimedRobot.

View File

@@ -1,7 +1,7 @@
classes:
wpi::TimedRobot:
attributes:
kDefaultPeriod:
DEFAULT_PERIOD:
methods:
StartCompetition:
EndCompetition: