Skip to content

Commit

Permalink
Fixed reported currentDraw in ArmIOStub
Browse files Browse the repository at this point in the history
  • Loading branch information
BrownGenius committed Mar 25, 2024
1 parent 82b4a88 commit c93df5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/arm/ArmIOStub.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class ArmIOStub implements ArmIO {
@Override
public void updateInputs(ArmIOInputs inputs) {
inputs.appliedVolts = currentVoltage;
inputs.currentAmps = arm.getCurrentDrawAmps();
inputs.currentAmps = Math.abs(arm.getCurrentDrawAmps());
inputs.positionDegrees = Units.radiansToDegrees(arm.getAngleRads());
inputs.velocityDegrees = Units.radiansToDegrees(arm.getVelocityRadPerSec());
inputs.relativePositionDegrees =
Expand Down

0 comments on commit c93df5a

Please sign in to comment.