|
27 | 27 | import edu.wpi.first.math.numbers.N3;
|
28 | 28 |
|
29 | 29 | public final class Constants {
|
| 30 | + |
30 | 31 | public static final double stickDeadband = 0.1;
|
31 | 32 |
|
32 | 33 | public static final class IntakeArm{ //TODO: This must be tuned to specific robot
|
@@ -202,27 +203,27 @@ public static final class AutoConstants { //TODO: The below constants are used i
|
202 | 203 | }
|
203 | 204 |
|
204 | 205 | public static class Vision {
|
205 |
| - public static final String kRightCameraName = "Arducam_OV9281_USB_Camera"; |
206 |
| - public static final String kLeftCameraName = "YOUR CAMERA NAME"; |
207 |
| - // Cam mounted facing forward, half a meter forward of center, half a meter up |
208 |
| - // from center. |
209 |
| - public static final Transform3d kRightRobotToCam = new Transform3d(new Translation3d(0.5, 0.0, 0.5), |
210 |
| - new Rotation3d(0, 0, 0)); |
211 |
| - public static final Transform3d kLeftRobotToCam = new Transform3d(new Translation3d(0.5, 0.0, 0.5), |
212 |
| - new Rotation3d(0, 0, 0)); |
213 |
| - |
214 |
| - // The layout of the AprilTags on the field |
215 |
| - public static final AprilTagFieldLayout kTagLayout = AprilTagFields.kDefaultField.loadAprilTagLayoutField(); |
216 |
| - |
217 |
| - // The standard deviations of our vision estimated poses, which affect |
218 |
| - // correction rate |
219 |
| - // (Fake values. Experiment and determine estimation noise on an actual robot.) |
220 |
| - public static final Matrix<N3, N1> kRightSingleTagStdDevs = VecBuilder.fill(4, 4, 8); |
221 |
| - public static final Matrix<N3, N1> kRightMultiTagStdDevs = VecBuilder.fill(0.5, 0.5, 1); |
222 |
| - |
223 |
| - public static final Matrix<N3, N1> kLeftSingleTagStdDevs = VecBuilder.fill(4, 4, 8); |
224 |
| - public static final Matrix<N3, N1> kLeftMultiTagStdDevs = VecBuilder.fill(0.5, 0.5, 1); |
225 |
| - |
226 |
| - public static final Pose2d target = new Pose2d(1, 1, new Rotation2d(Units.degreesToRadians(0))); |
227 |
| - } |
| 206 | + public static final String kRightCameraName = "Arducam_OV9281_USB_Camera"; |
| 207 | + public static final String kLeftCameraName = "YOUR CAMERA NAME"; |
| 208 | + // Cam mounted facing forward, half a meter forward of center, half a meter up |
| 209 | + // from center. |
| 210 | + public static final Transform3d kRightRobotToCam = new Transform3d(new Translation3d(0.5, 0.0, 0.5), |
| 211 | + new Rotation3d(0, 0, 0)); |
| 212 | + public static final Transform3d kLeftRobotToCam = new Transform3d(new Translation3d(0.5, 0.0, 0.5), |
| 213 | + new Rotation3d(0, 0, 0)); |
| 214 | + |
| 215 | + // The layout of the AprilTags on the field |
| 216 | + public static final AprilTagFieldLayout kTagLayout = AprilTagFields.kDefaultField.loadAprilTagLayoutField(); |
| 217 | + |
| 218 | + // The standard deviations of our vision estimated poses, which affect |
| 219 | + // correction rate |
| 220 | + // (Fake values. Experiment and determine estimation noise on an actual robot.) |
| 221 | + public static final Matrix<N3, N1> kRightSingleTagStdDevs = VecBuilder.fill(4, 4, 8); |
| 222 | + public static final Matrix<N3, N1> kRightMultiTagStdDevs = VecBuilder.fill(0.5, 0.5, 1); |
| 223 | + |
| 224 | + public static final Matrix<N3, N1> kLeftSingleTagStdDevs = VecBuilder.fill(4, 4, 8); |
| 225 | + public static final Matrix<N3, N1> kLeftMultiTagStdDevs = VecBuilder.fill(0.5, 0.5, 1); |
| 226 | + |
| 227 | + public static final Pose2d target = new Pose2d(1, 1, new Rotation2d(Units.degreesToRadians(0))); |
| 228 | + } |
228 | 229 | }
|
0 commit comments