Skip to content

Commit

Permalink
lowered some limits
Browse files Browse the repository at this point in the history
  • Loading branch information
bbdriverstation2 committed Mar 9, 2025
1 parent f051be9 commit 9445449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ public void setArmVoltage(double volts){
outputVoltage = Math.signum(outputVoltage) == 1 ? outputVoltage : outputVoltage * 0.07;
} else if (getCurrentAngle() >= ArmConstants.MAX_ANGLE_RADS) {
outputVoltage = Math.signum(outputVoltage) == -1 ? outputVoltage : outputVoltage * 0.07;
} else if (getCurrentAngle() <= ArmConstants.MIN_ANGLE_RADS + Units.degreesToRadians(15)) {
} else if (getCurrentAngle() <= ArmConstants.MIN_ANGLE_RADS + Units.degreesToRadians(10)) {
outputVoltage = Math.signum(outputVoltage) == 1 ? outputVoltage : outputVoltage * 0.33;
} else if (getCurrentAngle() >= ArmConstants.MAX_ANGLE_RADS - Units.degreesToRadians(15)) {
} else if (getCurrentAngle() >= ArmConstants.MAX_ANGLE_RADS - Units.degreesToRadians(8)) {
outputVoltage = Math.signum(outputVoltage) == -1 ? outputVoltage : outputVoltage * 0.25;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ public void setElevatorVoltage(double volts) {
outputVoltage = Math.signum(outputVoltage) == 1 ? outputVoltage : 0;
} else if (getLoadHeight() >= ElevatorConstants.maxHeight) {
outputVoltage = Math.signum(outputVoltage) == -1 ? outputVoltage : 0;
} else if ((getLoadHeight() <= ElevatorConstants.minHeight + 0.09)) {
} else if ((getLoadHeight() <= ElevatorConstants.minHeight + 0.06)) {
outputVoltage = Math.signum(outputVoltage) == 1 ? outputVoltage : outputVoltage * 0.333;
} else if (getLoadHeight() >= ElevatorConstants.maxHeight - 0.09) {
} else if (getLoadHeight() >= ElevatorConstants.maxHeight - 0.06) {
outputVoltage = Math.signum(outputVoltage) == -1 ? outputVoltage : outputVoltage * 0.333;

}
Expand Down

0 comments on commit 9445449

Please sign in to comment.