Add Shuffleboard calls to IterativeRobotBase in C++ (#1607)

Additionally, add epochs for Shuffleboard, LiveWindow, and
Smartdashboard updates.
This commit is contained in:
sciencewhiz
2019-04-27 22:23:21 -07:00
committed by Peter Johnson
parent f42905b32e
commit 1c454b000f
2 changed files with 16 additions and 4 deletions

View File

@@ -257,11 +257,14 @@ public abstract class IterativeRobotBase extends RobotBase {
robotPeriodic();
m_watchdog.addEpoch("robotPeriodic()");
m_watchdog.disable();
SmartDashboard.updateValues();
SmartDashboard.updateValues();
m_watchdog.addEpoch("SmartDashboard.updateValues()");
LiveWindow.updateValues();
m_watchdog.addEpoch("LiveWindow.updateValues()");
Shuffleboard.update();
m_watchdog.addEpoch("Shuffleboard.update()");
m_watchdog.disable();
// Warn on loop time overruns
if (m_watchdog.isExpired()) {