Skip to content

Commit b6b3423

Browse files
committed
migration: migrate Robot class logic
Signed-off-by: Dasun Abeykoon <[email protected]>
1 parent e71e79f commit b6b3423

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

assets/README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

assets/imgs/cascadeWireframe.webp

151 KB
Loading

src/main/java/org/frc6423/robot/Robot.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ public class Robot extends CommandRobot implements Logged {
3636
// * SUBSYSTEM INIT
3737
/** Replace this line with subsystem declerations */
3838

39-
// * TRIGGER INIT
40-
/** Replace this line with trigger declerations */
41-
4239
// * ALERT INIT
4340
private final Alert batteryBrownout = new Alert("Battery voltage output low", AlertType.kWarning);
4441

@@ -89,6 +86,13 @@ public Robot() {
8986

9087
/** Update all driver dashboard values on NetworkTables */
9188
private void updateDashboard() {
89+
// Update Visualizers
90+
SmartDashboard.putNumber("Battery Volts", RobotController.getBatteryVoltage());
91+
SmartDashboard.putNumber("CPU Temps", RobotController.getCPUTemp());
92+
SmartDashboard.putBoolean("RSL status", RobotController.getRSLState());
93+
SmartDashboard.putNumber("Match Time", DriverStation.getMatchTime());
94+
95+
// Update Alerts
9296
batteryBrownout.set(RobotController.isBrownedOut());
9397
driverDisconnected.set(!driverController.isConnected());
9498
operatorDisconnected.set(!operatorController.isConnected());

0 commit comments

Comments
 (0)