Skip to content

Commit

Permalink
Add MC speeds to SmartDash/Shuffleboard
Browse files Browse the repository at this point in the history
  • Loading branch information
willitcode committed Feb 8, 2024
1 parent a2d6e81 commit 26203c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import edu.wpi.first.wpilibj.PneumaticsModuleType;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

/**
* The VM is configured to automatically run this class, and to call the functions corresponding to
Expand Down Expand Up @@ -98,6 +99,9 @@ public void teleopPeriodic() {

leftStickSparkMax.set(getScaledControllerLeftYAxis());
rightStickSparkMax.set(getScaledControllerRightYAxis());

SmartDashboard.putNumber("LS SparkMax Speed", leftStickSparkMax.get());
SmartDashboard.putNumber("RS SparkMax Speed", rightStickSparkMax.get());
}

/** This function is called once when the robot is disabled. */
Expand Down

0 comments on commit 26203c0

Please sign in to comment.