java.lang.Object
frc.alotobots.library.subsystems.vision.oculus.io.OculusIOReal
All Implemented Interfaces:
OculusIO

public class OculusIOReal extends Object implements OculusIO
Implementation of OculusIO for real hardware communication via NetworkTables.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface frc.alotobots.library.subsystems.vision.oculus.io.OculusIO

    OculusIO.OculusIOInputs
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new OculusIOReal instance and initializes all NetworkTable publishers and subscribers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setMosi(int value)
    Sets MOSI (Master Out Slave In) value for Quest communication.
    void
    setResetPose(double x, double y, double rotation)
    Sets the pose components for resetting the Oculus position tracking.
    void
    Updates the set of loggable inputs from the Oculus.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OculusIOReal

      public OculusIOReal()
      Creates a new OculusIOReal instance and initializes all NetworkTable publishers and subscribers.
  • Method Details

    • updateInputs

      public void updateInputs(OculusIO.OculusIOInputs inputs)
      Description copied from interface: OculusIO
      Updates the set of loggable inputs from the Oculus.
      Specified by:
      updateInputs in interface OculusIO
      Parameters:
      inputs - The input object to update with current values
    • setMosi

      public void setMosi(int value)
      Description copied from interface: OculusIO
      Sets MOSI (Master Out Slave In) value for Quest communication.
      Specified by:
      setMosi in interface OculusIO
      Parameters:
      value - The MOSI value to set
    • setResetPose

      public void setResetPose(double x, double y, double rotation)
      Description copied from interface: OculusIO
      Sets the pose components for resetting the Oculus position tracking.
      Specified by:
      setResetPose in interface OculusIO
      Parameters:
      x - The X coordinate
      y - The Y coordinate
      rotation - The rotation in degrees