Skip to content

Commit

Permalink
its over
Browse files Browse the repository at this point in the history
  • Loading branch information
JayK445 committed Nov 13, 2023
1 parent 8a5e9f5 commit f47a927
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public N3_1ConePlusMobility(
addCommands(
new SetZeroModeCommand(elevatorSubsystem)
.deadlineWith(
new IntakeModeCommand(intakeSubsystem, IntakeSubsystem.Modes.INTAKE, () -> false)),
new IntakeModeCommand(intakeSubsystem, IntakeSubsystem.Modes.INTAKE, () -> true)),
new ScoreCommand(
intakeSubsystem,
elevatorSubsystem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public N3_1ConePlusMobilityEngage(

addCommands(
new SetZeroModeCommand(elevatorSubsystem)
.deadlineWith(new IntakeModeCommand(intakeSubsystem, Modes.INTAKE, () -> false)),
.deadlineWith(new IntakeModeCommand(intakeSubsystem, Modes.INTAKE, () -> true)),
new ScoreCommand(
intakeSubsystem,
elevatorSubsystem,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/autonomous/commands/N6_1Cone.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public N6_1Cone(

addCommands(
new SetZeroModeCommand(elevatorSubsystem)
.deadlineWith(new IntakeModeCommand(intakeSubsystem, Modes.INTAKE, () -> false)),
.deadlineWith(new IntakeModeCommand(intakeSubsystem, Modes.INTAKE, () -> true)),
new ScoreCommand(
intakeSubsystem,
elevatorSubsystem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public N6_1ConePlusEngage(

addCommands(
new SetZeroModeCommand(elevatorSubsystem)
.deadlineWith(new IntakeModeCommand(intakeSubsystem, Modes.INTAKE, () -> false)),
.deadlineWith(new IntakeModeCommand(intakeSubsystem, Modes.INTAKE, () -> true)),
new ScoreCommand(
intakeSubsystem,
elevatorSubsystem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public N9_1ConePlus2CubeMobility(

addCommands(
new SetZeroModeCommand(elevatorSubsystem)
.deadlineWith(new IntakeModeCommand(intakeSubsystem, Modes.INTAKE, () -> false)),
.deadlineWith(new IntakeModeCommand(intakeSubsystem, Modes.INTAKE, () -> true)),
new ScoreCommand(
intakeSubsystem,
elevatorSubsystem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public N9_1ConePlusMobility(
addCommands(
new SetZeroModeCommand(elevatorSubsystem)
.deadlineWith(
new IntakeModeCommand(intakeSubsystem, IntakeSubsystem.Modes.INTAKE, () -> false)),
new IntakeModeCommand(intakeSubsystem, IntakeSubsystem.Modes.INTAKE, () -> true)),
new ScoreCommand(
intakeSubsystem,
elevatorSubsystem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public N9_1ConePlusMobilityEngage(
addCommands(
new SetZeroModeCommand(elevatorSubsystem)
.deadlineWith(
new IntakeModeCommand(intakeSubsystem, IntakeSubsystem.Modes.INTAKE, () -> false)),
new IntakeModeCommand(intakeSubsystem, IntakeSubsystem.Modes.INTAKE, () -> true)),
new ScoreCommand(
intakeSubsystem,
elevatorSubsystem,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/ElevatorSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ private void percentDrivePeriodic() {
if (wristFilterOutput > Elevator.STATOR_LIMIT) {
wristMotor.set(TalonFXControlMode.PercentOutput, 0);
} else {
wristMotor.set(TalonFXControlMode.PercentOutput, MathUtil.clamp(wristPercentControl, -1, 1));
wristMotor.set(TalonFXControlMode.PercentOutput, MathUtil.clamp(wristPercentControl, -0.75, 0.75));
}
}

Expand All @@ -292,7 +292,7 @@ private void positionDrivePeriodic() {
} else {
wristMotor.set(
TalonFXControlMode.PercentOutput,
MathUtil.clamp(wristController.calculate(currentWristAngle, targetAngle), -1, 1));
MathUtil.clamp(wristController.calculate(currentWristAngle, targetAngle), -0.75, 0.75));
}
}

Expand Down

0 comments on commit f47a927

Please sign in to comment.