-
Notifications
You must be signed in to change notification settings - Fork 0
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
Event/2024cmptx #49
Conversation
new shooter stuff and logging cleanup
src/main/java/org/team1540/robot2024/commands/shooter/AutoShootPrepare.java
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)) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
src/main/java/org/team1540/robot2024/subsystems/shooter/ShooterPivotIOTalonFX.java
Outdated
Show resolved
Hide resolved
src/main/java/org/team1540/robot2024/subsystems/vision/AprilTagVisionIOMegaTag2.java
Show resolved
Hide resolved
|
||
} | ||
|
||
public static double flipIfRed(double num){ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
src/main/java/org/team1540/robot2024/util/vision/LimelightHelpers.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Alvin Zhang <114535782+mimizh2418@users.noreply.github.com>
This reverts commit bbd8809.
There was a problem hiding this 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
No description provided.