Skip to content

Commit

Permalink
changed constants
Browse files Browse the repository at this point in the history
  • Loading branch information
jhhbrown1 committed Jan 25, 2025
1 parent c78bd2f commit eadc7c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static final class RobotConstants {
* The {@code Transform3d} expressing the pose of the camera relative to the
* pose of the robot.
*/
public static Transform3d kRobotToCamera1 = new Transform3d(new Translation3d(0.3, 0.0, 0.2),
public static Transform3d kRobotToCamera1 = new Transform3d(new Translation3d(0.0, -0.1, 0.2),
new Rotation3d(0, Units.degreesToRadians(-20), 0));
}
}
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ public void bindDriveControls() {
() -> -m_driverController.getLeftX(),
() -> m_driverController.getR2Axis() - m_driverController.getL2Axis(),
m_driverController.getHID()::getSquareButton));
Transform2d robotToTarget = new Transform2d(.8, 0, Rotation2d.fromDegrees(180));
Transform2d robotToTarget = new Transform2d(1.5, 0, Rotation2d.fromDegrees(180));
m_driverController.button(Button.kSquare)
.whileTrue(
AlignCommand.moveToClosestTag(
m_driveSubsystem, m_poseEstimationSubystem, 90, 3, robotToTarget,
.1, 3));
.2, 10));
}

@Override
Expand Down

0 comments on commit eadc7c9

Please sign in to comment.