Class SwerveIMU

    • Constructor Detail

      • SwerveIMU

        public SwerveIMU()
    • Method Detail

      • factoryDefault

        public abstract void factoryDefault()
        Reset IMU to factory default.
      • clearStickyFaults

        public abstract void clearStickyFaults()
        Clear sticky faults on IMU.
      • setYaw

        public abstract void setYaw​(double yaw)
        Set the yaw in degrees.
        Parameters:
        yaw - Yaw angle in degrees.
      • getYawPitchRoll

        public abstract void getYawPitchRoll​(double[] yprArray)
        Fetch the yaw/pitch/roll from the IMU.
        Parameters:
        yprArray - Array which will be filled with {yaw, pitch, roll} in degrees.
      • getIMU

        public abstract Object getIMU()
        Get the instantiated IMU object.
        Returns:
        IMU object.