Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event/2024cmptx #49

Merged
merged 20 commits into from
May 14, 2024
Merged

Event/2024cmptx #49

merged 20 commits into from
May 14, 2024

Conversation

rutmanz
Copy link
Member

@rutmanz rutmanz commented Apr 28, 2024

No description provided.

@rutmanz rutmanz requested a review from a team as a code owner April 28, 2024 18:22
build.gradle Outdated Show resolved Hide resolved
Math.atan2(Constants.Targeting.STAGE_MAX_HEIGHT + 1.5 - Constants.Shooter.Pivot.PIVOT_HEIGHT,
positionSupplier.get().getTranslation().getDistance(
AprilTagsCrescendo.getInstance().getTag(AprilTagsCrescendo.Tags.CLIMB_FAR, DriverStation.getAlliance().orElse(null) == DriverStation.Alliance.Red ? DriverStation.Alliance.Blue : DriverStation.Alliance.Red
).toPose2d().getTranslation().plus(new Translation2d(FlipUtil.flipIfRed(2.277226), 0))
Copy link
Member Author

Choose a reason for hiding this comment

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

what's the 2.277226 for?

Copy link
Member

Choose a reason for hiding this comment

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

Great question, it's some weird thing for moving a pose somewhere (I told simon to put the pose in constants but he wouldn't do it so we get this instead)

Copy link
Member Author

Choose a reason for hiding this comment

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

Is this used for anything?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think so, I think Simon wanted to have it for auto shooter spinup or something but we never ended up using it


}

public static double flipIfRed(double num){
Copy link
Member Author

Choose a reason for hiding this comment

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

Why do I want my numbers to be negative on red?

Copy link
Member

Choose a reason for hiding this comment

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

For moving poses around i think? This was a simon thing since he didn't like putting poses in constants

build.gradle Outdated Show resolved Hide resolved
rutmanz and others added 3 commits April 28, 2024 11:41
Co-authored-by: Alvin Zhang <114535782+mimizh2418@users.noreply.github.com>
This reverts commit bbd8809.
Copy link
Member Author

@rutmanz rutmanz left a comment

Choose a reason for hiding this comment

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

@mimizh2418 can you review pt. 2

@mimizh2418 mimizh2418 enabled auto-merge (squash) May 14, 2024 18:20
@mimizh2418 mimizh2418 merged commit a1fe1cc into main May 14, 2024
1 check passed
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.

4 participants