mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-28 02:11:40 +00:00
Make 2027 build (#2422)
This PR updates everything for 2027. This includes removing GradleRIO, simplifying our wpilib version defintion, updating APIs, updating to Java 21, and more. Note that photonlibpy is failing because robotpy has not been fully updated yet. Examples are omitted because they need to be updated for our new PhotonPoseEstimator API and still need some changes from WPILIB. photonlib windows build is failing because we're waiting for some upstream changes. Finally, images are failing since they don't have Java 21 yet.
This commit is contained in:
@@ -55,6 +55,7 @@ import org.photonvision.vision.pipeline.PipelineProfiler;
|
||||
import org.photonvision.vision.processes.VisionSourceManager;
|
||||
import org.photonvision.vision.target.TargetModel;
|
||||
import org.wpilib.hardware.hal.HAL;
|
||||
import org.wpilib.math.geometry.Rotation2d;
|
||||
|
||||
public class Main {
|
||||
public static final int DEFAULT_WEBPORT = 5800;
|
||||
@@ -242,8 +243,6 @@ public class Main {
|
||||
|
||||
if (OsImageData.IMAGE_METADATA.isPresent()) {
|
||||
logger.info("PhotonVision image data: " + OsImageData.IMAGE_METADATA.get());
|
||||
} else if (OsImageData.IMAGE_VERSION.isPresent()) {
|
||||
logger.info("PhotonVision image version: " + OsImageData.IMAGE_VERSION.get());
|
||||
} else {
|
||||
logger.info("PhotonVision image version: unknown");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user