Skip to content

Conversation

@levyishai
Copy link
Member

No description provided.

@levyishai levyishai changed the title Remade mirrorable as flippable Flippable Jan 6, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 8 changed files in this pull request and generated no comments.

Files not reviewed (3)
  • src/main/java/org/trigon/utilities/mirrorable/MirrorablePose2d.java: Evaluated as low risk
  • src/main/java/org/trigon/utilities/mirrorable/MirrorableRotation2d.java: Evaluated as low risk
  • src/main/java/org/trigon/utilities/mirrorable/MirrorableTranslation3d.java: Evaluated as low risk
Comments suppressed due to low confidence (8)

src/main/java/org/trigon/utilities/flippable/FlippableTranslation3d.java:8

  • The class documentation mentions 'FlippableTranslation3d' instead of 'FlippableTranslation2d'.
* A class that represents a {@link Translation3d} that can be flipped when the robot is on the red alliance.

src/main/java/org/trigon/utilities/flippable/FlippableTranslation3d.java:35

  • The method documentation should explicitly state that the Z value will have no change.
protected Translation3d flip(Translation3d translation) {

src/main/java/org/trigon/utilities/flippable/FlippableTranslation3d.java:15

  • The constructor documentation has a minor inconsistency in the parameter description.
@param nonFlippedTranslation     the translation to flip

src/main/java/org/trigon/utilities/flippable/FlippableTranslation2d.java:11

  • The Javadoc comment incorrectly refers to FlippableTranslation3d instead of FlippableTranslation2d.
* Creates a new FlippableTranslation3d with the given translation.

src/main/java/org/trigon/utilities/flippable/FlippableTranslation2d.java:22

  • The Javadoc comment incorrectly refers to FlippableTranslation3d instead of FlippableTranslation2d.
* Creates a new FlippableTranslation3d with the given x and y values.

src/main/java/org/trigon/utilities/flippable/FlippablePose2d.java:43

  • [nitpick] The parameter name 'rotation' is ambiguous. It should be renamed to 'rotationRadians' to clearly indicate that it represents radians.
public FlippablePose2d(Translation2d translation2d, double rotation, boolean shouldFlipWhenRedAlliance) {

src/main/java/org/trigon/utilities/flippable/FlippableRotation2d.java:13

  • The term 'non flipped rotation' should be hyphenated as 'non-flipped rotation' for consistency.
@param nonFlippedRotation        the non flipped rotation when the robot is on the blue alliance

src/main/java/org/trigon/utilities/flippable/FlippableRotation2d.java:55

  • The comment for 'fromRotations' should be updated to match the format of 'fromDegrees' and 'fromRadians'.
@param rotations                 the value of the angle in rotations

@levyishai levyishai requested a review from Nummun14 January 6, 2025 18:44
@levyishai levyishai merged commit f126258 into main Jan 6, 2025
3 checks passed
@levyishai levyishai deleted the flippable branch January 6, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants