mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Add Shuffleboard calls to IterativeRobotBase in C++ (#1607)
Additionally, add epochs for Shuffleboard, LiveWindow, and Smartdashboard updates.
This commit is contained in:
committed by
Peter Johnson
parent
f42905b32e
commit
1c454b000f
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user