Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Commit 87e213b

Browse files
fix note pose :/
1 parent 26466a7 commit 87e213b

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

src/main/java/frc/robot/RobotContainer.java

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,18 @@ public class RobotContainer {
105105
new BeamBreakIOAdafruit(SpindexConstants.kSpindexBeamBreakDIO));
106106
private final Vision vision = new Vision(new VisionIOLimelight());
107107

108-
// private final Superstructure superstructure =
109-
// new Superstructure(
110-
// ampevator,
111-
// ampevatorRollers,
112-
// turret,
113-
// climb,
114-
// intake,
115-
// spindex,
116-
// pivotShooter,
117-
// shooter,
118-
// vision);
108+
// private final Superstructure superstructure = // TODO: when uncommented also uncomment the
109+
// periodic
110+
// new Superstructure(
111+
// ampevator,
112+
// ampevatorRollers,
113+
// turret,
114+
// climb,
115+
// intake,
116+
// spindex,
117+
// pivotShooter,
118+
// shooter,
119+
// vision);
119120

120121
// Replace with CommandPS4Controller or CommandJoystick if needed
121122
public final MappedXboxController m_driverController =
@@ -398,5 +399,6 @@ public Command getAutonomousCommand() {
398399

399400
public void periodic() {
400401
autoChooser.update();
402+
// superstructure.periodic();
401403
}
402404
}

src/main/java/frc/robot/subsystems/vision/Vision.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,8 @@ public Pose2d getNotePose(Pose2d robotPose) {
8383
new Transform2d(
8484
new Translation2d(
8585
Units.inchesToMeters(getDistanceToNote()),
86-
robotPose
87-
.getRotation()
88-
.plus(Rotation2d.fromDegrees(visionIOAutoLogged.ampevatorLimelightX))),
89-
robotPose
90-
.getRotation()
91-
.plus(Rotation2d.fromDegrees(visionIOAutoLogged.ampevatorLimelightX))));
86+
Rotation2d.fromDegrees(visionIOAutoLogged.ampevatorLimelightX)),
87+
Rotation2d.fromDegrees(visionIOAutoLogged.ampevatorLimelightX)));
9288
}
9389

9490
@AutoLogOutput

0 commit comments

Comments
 (0)