mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user