Enum Class OculusConstants.PoseResetStrategy

java.lang.Object
java.lang.Enum<OculusConstants.PoseResetStrategy>
frc.alotobots.library.subsystems.vision.oculus.constants.OculusConstants.PoseResetStrategy
All Implemented Interfaces:
Serializable, Comparable<OculusConstants.PoseResetStrategy>, Constable
Enclosing class:
OculusConstants

public static enum OculusConstants.PoseResetStrategy extends Enum<OculusConstants.PoseResetStrategy>
Determines which side the pose reset logic should be used

ROBOT_SIDE -> All resets happen with a transform applied to the robot code. resetPose() must be called ONCE prior to the start of the match to avoid latency in resetting the Oculus side pose to (0, 0, 0) Afterward, updateTransform() should be called instead if the transform needs to be updated.

OCULUS_SIDE -> All resets happen with a transform applied to the Oculus code. These methods should NOT be called during match play as it will result in incorrect transformations due to latency.

  • Enum Constant Details

  • Method Details

    • values

      public static OculusConstants.PoseResetStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OculusConstants.PoseResetStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null