Skip to content

Commit 19b602e

Browse files
committed
Merge branch 'superstructure-rewrite' of https://github.com/wmironpatriots/CompetitionRobot2025 into superstructure-rewrite
2 parents 3bac3e7 + 6ebb936 commit 19b602e

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/main/java/org/frc6423/robot/subsystems/arm/ArmPivot.java

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,30 +53,35 @@ public boolean atPose() {
5353
/**
5454
* Set the goal angle of the arm
5555
*
56+
*
5657
* @param angle {@link Angle} representing the desired angle
5758
* @return {@link Command}
5859
*/
5960
public Command goToAngle(Angle angle) {
6061
return this.run(
62+
6163
() -> {
62-
hardware.setAngle(angle.in(Radians));
63-
});
64+
hardware.setAngle(angle.in(Radians));
65+
});
6466
}
6567

6668
/**
6769
* Hold pivot at its current position for the duration of this command's life
6870
*
71+
*
6972
* @return {@link Command}
7073
*/
7174
public Command hold() {
7275
return Commands.sequence(
73-
this.run(
76+
this.run(
77+
7478
() -> {
75-
var currentAngle = hardware.getAngle();
76-
hardware.setAngle(currentAngle);
77-
})
79+
var currentAngle = hardware.getAngle();
80+
hardware.setAngle(currentAngle);
81+
})
82+
7883
.until(() -> true),
79-
this.run(() -> {}));
84+
this.run(() -> {}));
8085
}
8186

8287
@Override

0 commit comments

Comments
 (0)