[wpilib] Make IterativeRobotBase::m_period private with getter

This commit is contained in:
Tyler Veness
2019-04-13 14:26:42 -07:00
committed by Peter Johnson
parent f00dfed7ac
commit 497b712f67
6 changed files with 16 additions and 18 deletions

View File

@@ -100,6 +100,10 @@ void IterativeRobotBase::SetNetworkTablesFlushEnabled(bool enabled) {
m_ntFlushEnabled = enabled;
}
units::second_t IterativeRobotBase::GetPeriod() const {
return m_period;
}
void IterativeRobotBase::LoopFunc() {
m_watchdog.Reset();