Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Put Arm Voltage to Smart Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
3LucasZ committed Oct 3, 2023
1 parent 4c731f4 commit d038561
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/frc/robot/arm/Arm.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public double calculateFeedForward(double angleRadians, double velocity) {
}

public void setInputVoltage(double voltage) {
SmartDashboard.putNumber("Arm Voltage", voltage);
armMotor.setVoltage(MathUtil.clamp(voltage, -12, 12));
}

Expand Down

0 comments on commit d038561

Please sign in to comment.