mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
Quick switch to swerve odometry
This commit is contained in:
@@ -146,15 +146,15 @@ public class VisionOdometry extends SubsystemBase {
|
||||
return m_camera.getLEDMode() != VisionLEDMode.kOff;
|
||||
}
|
||||
|
||||
public void updateOdometryWithVision(){
|
||||
try {
|
||||
m_drive.m_poseEstimator.addVisionMeasurement(
|
||||
getVisionOdometry(),
|
||||
Timer.getFPGATimestamp() - getLatency());
|
||||
} catch (VisionObscuredException err) {
|
||||
err.printStackTrace();
|
||||
}
|
||||
}
|
||||
// public void updateOdometryWithVision(){
|
||||
// try {
|
||||
// m_drive.m_poseEstimator.addVisionMeasurement(
|
||||
// getVisionOdometry(),
|
||||
// Timer.getFPGATimestamp() - getLatency());
|
||||
// } catch (VisionObscuredException err) {
|
||||
// err.printStackTrace();
|
||||
// }
|
||||
// }
|
||||
|
||||
/** Reverse 3d projects target points from screen coordinates to 3d space
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user