Skip to content

Commit

Permalink
fixed inversion of shooting while moving forward/backward on blue all…
Browse files Browse the repository at this point in the history
…iance
  • Loading branch information
2491NoMythic committed Nov 20, 2024
1 parent a1fb744 commit ba5af94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public double calculateSpeakerAngle() {
offsetSpeakerX = Field.SHOOTER_RED_SPEAKER_X - targetOffset.getX();
offsetSpeakerY = Field.RED_SPEAKER_Y - targetOffset.getY();
} else {
offsetSpeakerX = Field.SHOOTER_BLUE_SPEAKER_X - targetOffset.getX();
offsetSpeakerX = Field.SHOOTER_BLUE_SPEAKER_X + targetOffset.getX();
offsetSpeakerY = Field.BLUE_SPEAKER_Y - targetOffset.getY();
}
double offsetDeltaX = Math.abs(dtvalues.getX() - offsetSpeakerX);
Expand Down

0 comments on commit ba5af94

Please sign in to comment.