Skip to content

Conversation

@Wu-Fan-529
Copy link
Contributor

@TaylerUva please test it...

@Wu-Fan-529 Wu-Fan-529 requested a review from a team as a code owner October 17, 2025 01:03
Copilot AI review requested due to automatic review settings October 17, 2025 01:03
Copy link
Contributor

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.

Pull Request Overview

This PR adjusts field pose constants for reef branches and refactors algae pose definitions to use dedicated endpoints before computing midpoints.

  • Updates REEF_A–REEF_L Pose2d constants to new positions/angles.
  • Introduces ALGAE_A–ALGAE_L endpoints and derives ALGAE_AB–ALGAE_KL as midpoints between those endpoints.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@FRCTeam3255 FRCTeam3255 deleted a comment from Copilot AI Oct 17, 2025
@FRCTeam3255 FRCTeam3255 deleted a comment from Copilot AI Oct 17, 2025
@TaylerUva TaylerUva added the ✨ Code Good - Ready to Test Code logic is good and ready to be approved just needs testing label Oct 17, 2025
Copy link
Member

@TaylerUva TaylerUva left a comment

Choose a reason for hiding this comment

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

  • Reduce tolerances
  • set pose align to only end if in auto

Copilot AI review requested due to automatic review settings October 18, 2025 17:28
Copy link
Contributor

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.

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

isPoseAligned = subDrivetrain.isAtPosition(closestPose, poseGroup.distanceTolerance) &&
subDrivetrain.isAtRotation(closestPose.getRotation(), poseGroup.rotationTolerance);
return isPoseAligned;
return isPoseAligned & DriverStation.isAutonomous();
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

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

Use the short-circuit logical AND (&&) instead of bitwise AND (&) for booleans to avoid unnecessary evaluation and match Java conventions: return isPoseAligned && DriverStation.isAutonomous();

Suggested change
return isPoseAligned & DriverStation.isAutonomous();
return isPoseAligned && DriverStation.isAutonomous();

Copilot uses AI. Check for mistakes.
import frc.robot.Constants.PoseDriveGroup;
import frc.robot.Constants.constField;
import frc.robot.Field;
import frc.robot.Robot;
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

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

This import appears unused in this file. Please remove it to keep imports clean, unless you plan to use it in this class.

Suggested change
import frc.robot.Robot;

Copilot uses AI. Check for mistakes.
public static final double SLOW_MODE_MULTIPLIER = 0.5;

public static final boolean INVERT_ROTATION = true;
public static final boolean INVERT_ROTATION = !Robot.isSimulation();
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

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

[nitpick] To reduce coupling between Constants and your Robot class, prefer WPILib's RobotBase utility: import edu.wpi.first.wpilibj.RobotBase; and use public static final boolean INVERT_ROTATION = !RobotBase.isSimulation();

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings October 18, 2025 21:49
Copy link
Contributor

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 encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

EliUva and others added 2 commits October 18, 2025 21:52
Co-Authored-By: Yutong Zhu <3681247216@qq.com>
Co-Authored-By: Yutong Zhu <3681247216@qq.com>
Copilot AI review requested due to automatic review settings October 21, 2025 02:36
Copy link
Contributor

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 encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Code Good - Ready to Test Code logic is good and ready to be approved just needs testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants