Minor cleanup
This commit is contained in:
@@ -57,13 +57,8 @@ public class Robot extends TimedRobot {
|
|||||||
public Robot() {
|
public Robot() {
|
||||||
visionSim = new VisionSystemSim("main");
|
visionSim = new VisionSystemSim("main");
|
||||||
|
|
||||||
try {
|
visionSim.addAprilTags(AprilTagFieldLayout.loadField(AprilTagFields.k2026RebuiltWelded));
|
||||||
visionSim.addAprilTags(AprilTagFieldLayout.loadFromResource(AprilTagFields.k2026RebuiltWelded.m_resourceFile));
|
|
||||||
} catch (IOException e) {
|
|
||||||
// TODO Auto-generated catch block
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
cameraProperties = new SimCameraProperties();
|
cameraProperties = new SimCameraProperties();
|
||||||
cameraProperties.setCalibration(
|
cameraProperties.setCalibration(
|
||||||
1280,
|
1280,
|
||||||
@@ -96,7 +91,7 @@ public class Robot extends TimedRobot {
|
|||||||
Units.inchesToMeters(28.5),
|
Units.inchesToMeters(28.5),
|
||||||
new Rotation3d(
|
new Rotation3d(
|
||||||
Units.degreesToRadians(0),
|
Units.degreesToRadians(0),
|
||||||
Units.degreesToRadians(-24.0),
|
Units.degreesToRadians(-24.0), // Change this from -24 to 24 to see the bad effect
|
||||||
Units.degreesToRadians(30.0)
|
Units.degreesToRadians(30.0)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user