Add ignored cameras regex to command-line arguemnts (#849)

This adds a regex that ignores cameras if they match it, for if you have another piece of software running that needs a second camera, or if you have a webcam in your laptop that cscore hates.
This commit is contained in:
person4268
2023-06-03 21:04:04 -04:00
committed by GitHub
parent 80f479344d
commit 6d2eae7f20
20 changed files with 78 additions and 14 deletions

View File

@@ -61,7 +61,9 @@ public class AutoController {
new TrajectoryConfig(2, 2));
}
/** @return The starting (initial) pose of the currently-active trajectory */
/**
* @return The starting (initial) pose of the currently-active trajectory
*/
public Pose2d getInitialPose() {
return trajectory.getInitialPose();
}

View File

@@ -130,7 +130,9 @@ public class Drivetrain {
poseEst.resetToPose(pose, leftEncoder.getDistance(), rightEncoder.getDistance());
}
/** @return The current best-guess at drivetrain Pose on the field. */
/**
* @return The current best-guess at drivetrain Pose on the field.
*/
public Pose2d getCtrlsPoseEstimate() {
return poseEst.getPoseEst();
}

View File

@@ -100,7 +100,9 @@ public class DrivetrainPoseEstimator {
m_poseEstimator.resetPosition(gyro.getRotation2d(), leftDist, rightDist, pose);
}
/** @return The current best-guess at drivetrain position on the field. */
/**
* @return The current best-guess at drivetrain position on the field.
*/
public Pose2d getPoseEst() {
return m_poseEstimator.getEstimatedPosition();
}

View File

@@ -149,7 +149,9 @@ public class DrivetrainSim {
drivetrainSimulator.setPose(pose);
}
/** @return The simulated robot's position, in meters. */
/**
* @return The simulated robot's position, in meters.
*/
public Pose2d getCurPose() {
return drivetrainSimulator.getPose();
}