Class LocalizationFusionConstants.AutoRealignConstants
java.lang.Object
frc.alotobots.library.subsystems.vision.localizationfusion.LocalizationFusionConstants.AutoRealignConstants
- Enclosing class:
- LocalizationFusionConstants
Constants related to the auto-realignment feature for correcting Quest drift using AprilTags.
This system monitors robot stability and pose error to trigger automatic realignments when the
robot is stationary and significant drift is detected.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
Minimum time between auto-realignments (seconds).static final boolean
Whether auto-realignment should be enabled.static final double
Maximum pose change over stability period to be considered stable (meters).static final double
Time robot must be stable before realigning (seconds).static final double
Threshold for auto-realignment when pose error exceeds this value (meters). -
Constructor Summary
-
Method Summary
-
Field Details
-
ENABLED
public static final boolean ENABLEDWhether auto-realignment should be enabled.- See Also:
-
THRESHOLD
public static final double THRESHOLDThreshold for auto-realignment when pose error exceeds this value (meters).- See Also:
-
MAX_MOVEMENT
public static final double MAX_MOVEMENTMaximum pose change over stability period to be considered stable (meters).- See Also:
-
STABILITY_TIME
public static final double STABILITY_TIMETime robot must be stable before realigning (seconds).- See Also:
-
COOLDOWN
public static final double COOLDOWNMinimum time between auto-realignments (seconds).- See Also:
-
-
Constructor Details
-
AutoRealignConstants
public AutoRealignConstants()
-