Skip to content

Commit

Permalink
removed bad logic for vel update
Browse files Browse the repository at this point in the history
  • Loading branch information
GearBoxFox committed Mar 9, 2024
1 parent 735bbb6 commit 4fc5cd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/arm/ArmIOKraken.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public void setArmVoltage(double voltage) {

@Override
public void setArmAngle(double degrees, double velocityMult) {
if (velocityMult == 0.0 && m_prevArmVelocityMult != velocityMult) {
if (m_prevArmVelocityMult != velocityMult) {
m_armMaxVelDegS.updateIfChanged(true);
}
m_prevArmVelocityMult = velocityMult;
Expand All @@ -270,7 +270,7 @@ public void setWristVoltage(double voltage) {

@Override
public void setWristAngle(double degrees, double velocityMult) {
if (velocityMult == 0.0 && m_prevWristVelocityMult != velocityMult) {
if (m_prevWristVelocityMult != velocityMult) {
m_wristMaxVelDegS.updateIfChanged(true);
}
m_prevWristVelocityMult = velocityMult;
Expand Down

0 comments on commit 4fc5cd1

Please sign in to comment.