Skip to content

turret camera -> master#135

Open
DanielShapir wants to merge 11 commits into
masterfrom
make-limelight-work-with-turret
Open

turret camera -> master#135
DanielShapir wants to merge 11 commits into
masterfrom
make-limelight-work-with-turret

Conversation

@DanielShapir
Copy link
Copy Markdown

make limelight get robot position when the camera is on the turret

@DanielShapir DanielShapir marked this pull request as draft February 8, 2026 16:46
@DanielShapir DanielShapir self-assigned this Feb 12, 2026
@DanielShapir DanielShapir marked this pull request as ready for review February 12, 2026 13:24
@DANNA2828 DANNA2828 changed the title Make limelight work with turret turret camera -> master Feb 19, 2026
Comment on lines +215 to +225
public static Pose2d calculateRobotCenterRelativeToField(
Supplier<Pose2d> limeLightPoseRelativeToRobotCenter,
Pose2d limeLightPoseRelativeToField
) {
Transform2d camTransformRelativeToRobotCenter = new Transform2d(
new Pose2d(0, 0, Rotation2d.fromDegrees(0.0)),
limeLightPoseRelativeToRobotCenter.get()
);
return (limeLightPoseRelativeToField.transformBy(camTransformRelativeToRobotCenter.inverse()));
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is the camera only moving in 2d space?

Pose2d limeLightPoseRelativeToField
) {
Transform2d camTransformRelativeToRobotCenter = new Transform2d(
new Pose2d(0, 0, Rotation2d.fromDegrees(0.0)),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
new Pose2d(0, 0, Rotation2d.fromDegrees(0.0)),
new Pose2d(0, 0, new Rotation2d()),

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants