Skip to content

Commit

Permalink
fix: actually fix null vision poses
Browse files Browse the repository at this point in the history
  • Loading branch information
mimizh2418 committed Jan 30, 2024
1 parent 6e3b8cb commit 5dfb4ef
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ public class AprilTagVision extends SubsystemBase {

private final Consumer<TimestampedVisionPose> visionPoseConsumer;

private TimestampedVisionPose frontPose;
private TimestampedVisionPose rearPose;
private TimestampedVisionPose frontPose =
new TimestampedVisionPose(-1, new Pose2d(), new int[0], new Pose2d[0]);
private TimestampedVisionPose rearPose =
new TimestampedVisionPose(-1, new Pose2d(), new int[0], new Pose2d[0]);

public AprilTagVision(
AprilTagVisionIO frontCameraIO,
Expand Down

0 comments on commit 5dfb4ef

Please sign in to comment.