Class StudicaLibDevices

java.lang.Object
swervelib.parser.deserializer.reflections.StudicaLibDevices

public class StudicaLibDevices extends Object
StudicaLib Gyroscope and other devices.
  • Constructor Details

    • StudicaLibDevices

      public StudicaLibDevices()
  • Method Details

    • getGyroAngle

      public static Pair<Supplier<Angle>,Object> getGyroAngle(int canid, String canbus, SwerveDriveJson.GyroAxis axis, boolean inverted)
      Get the gyroscope angle supplier and gyroscope object.
      Parameters:
      canid - CAN ID of the gyroscope.
      canbus - CAN bus name of the gyroscope.
      axis - Gyro axis.
      inverted - Inverted gyro readings.
      Returns:
      Pair of Supplier and Object