LimelightVision / limelightlib-wpijava

48 stars 16 forks source link

Add more NT Functionality #26

Closed JosephTLockwood closed 3 months ago

JosephTLockwood commented 3 months ago

Allow users to read and write to NT more easily for logging and replaying.

toLog

table.put(
            "estimatedPose/" + Integer.toString(posePosition),
            LimelightHelpers.pose2dToArray(poseEstimate.pose()));

fromLog

Pose2d poseEstimation =
            LimelightHelpers.toPose2D(
                table.get("estimatedPose/" + Integer.toString(i), new double[] {}));