Skip to content

Commit 4b55b55

Browse files
Camera Position Calibrator Fix (#33)
* I haven't looked at this in weeks 😁 * time is fleeting it's running out time to be the man of the house * I'll be here buying you time * Updated all vendors except Advantage Kit * I haven't looked at this in weeks 😁 * time is fleeting it's running out time to be the man of the house * I'll be here buying you time * Update AdvantageKit.json * Added needed check * Fix logic --------- Co-authored-by: Strflightmight09 <[email protected]>
1 parent 5a72ba8 commit 4b55b55

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/org/trigon/commands/CameraPositionCalculationCommand.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public void initialize() {
3535
@Override
3636
public void execute() {
3737
rotateRobot.accept(ROTATION_SPEED.get());
38+
39+
final Pose2d currentPose = cameraPoseSupplier.get();
40+
if (currentPose != null)
41+
endPose = currentPose;
42+
3843
endPose = cameraPoseSupplier.get();
3944
logRobotToCamera();
4045
}

0 commit comments

Comments
 (0)