Class ReduxDevices
java.lang.Object
swervelib.parser.deserializer.reflections.ReduxDevices
Reflective class for
Canandgyro and other devices.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAbsoluteEncoder(int canid, String canbus, boolean inverted) Get theCanandmagangle.getGyroAngle(int canid, String canbus, SwerveDriveJson.GyroAxis axis, boolean inverted) Get the gyroscope angle supplier and gyroscope object.
-
Constructor Details
-
ReduxDevices
public ReduxDevices()
-
-
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. -
getAbsoluteEncoder
public static Pair<Supplier<Angle>,Object> getAbsoluteEncoder(int canid, String canbus, boolean inverted) Get theCanandmagangle.
-