Class StudicaLibDevices

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

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

    • StudicaLibDevices

      public StudicaLibDevices()
  • Method Details

    • getGyro

      public static org.wpilib.util.Pair<Supplier<org.wpilib.math.geometry.Rotation3d>, Object> getGyro(int canid, String canbus)
      Get the gyroscope attitude supplier and gyroscope object.
      Parameters:
      canid - CAN ID of the gyroscope.
      canbus - CAN bus of the gyroscope, a Systemcore CAN bus number.
      Returns:
      Pair of the attitude Supplier and the gyroscope Object