Skip to content

Commit 5c1c6de

Browse files
Publishes current command information (#128)
* final command thing * final command publishing (for passing check)
1 parent a577ccc commit 5c1c6de

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/main/java/frc/robot/Robot.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ public void robotPeriodic() {
129129
checkVision();
130130
SmartDashboard.putData("Driver Controller", driver.getHID());
131131
SmartDashboard.putData("Operator Controller", operator.getHID());
132+
SmartDashboard.putData(CommandScheduler.getInstance());
133+
SmartDashboard.putData(swerve);
134+
SmartDashboard.putData(climber);
135+
SmartDashboard.putData(leds);
132136
SmartDashboard.putData(powerDistribution);
137+
elevator.periodic();
133138
SmartDashboard.putString(
134139
"Gamepiece", getLoadedGamepiece() == null ? "None" : getLoadedGamepiece().toString());
135140
}

src/main/java/frc/robot/elevator/Elevator.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package frc.robot.elevator;
22

3+
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
34
import edu.wpi.first.wpilibj2.command.Command;
45
import edu.wpi.first.wpilibj2.command.Commands;
56
import edu.wpi.first.wpilibj2.command.InstantCommand;
@@ -17,6 +18,14 @@ public class Elevator {
1718

1819
public Elevator() {}
1920

21+
public void periodic() {
22+
SmartDashboard.putData(lifter);
23+
SmartDashboard.putData(coralWrist);
24+
SmartDashboard.putData(coralRoller);
25+
SmartDashboard.putData(algaeRoller);
26+
SmartDashboard.putData(algaeWrist);
27+
}
28+
2029
public Lifter getLifter() {
2130
return lifter;
2231
}

0 commit comments

Comments
 (0)