We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1c7edc commit 5bf8194Copy full SHA for 5bf8194
src/main/java/frc/trigon/robot/subsystems/arm/Arm.java
@@ -178,7 +178,7 @@ private boolean atAngle(Rotation2d targetAngle) {
178
}
179
180
private static Rotation2d subtractFrom360Degrees(Rotation2d angleToSubtract) {
181
- return Rotation2d.fromDegrees(360 - angleToSubtract.getDegrees());
+ return Rotation2d.fromDegrees(Rotation2d.k180deg.getDegrees() * 2 - angleToSubtract.getDegrees());
182
183
184
private Pose3d calculateVisualizationPose() {
0 commit comments