Skip to content

Commit 5fc9143

Browse files
authored
Merge pull request #10 from robotpy/expose-time
Expose period parameter in TimedCommandRobot
2 parents 23ef04b + 92a8f7b commit 5fc9143

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

commands2/src/TimedCommandRobot.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ namespace frc2 {
1515
*/
1616
class TimedCommandRobot : public frc::TimedRobot {
1717
public:
18+
19+
TimedCommandRobot(units::second_t period = frc::TimedRobot::kDefaultPeriod) :
20+
TimedRobot(period)
21+
{}
22+
1823
/** Ensures commands are run */
1924
void RobotPeriodic() override { CommandScheduler::GetInstance().Run(); }
2025
};

0 commit comments

Comments
 (0)