Class SwerveMotors

java.lang.Object
org.team1126.lib.swerve.hardware.SwerveMotors

public final class SwerveMotors extends Object
Contains implementations for motors to be used with the SwerveAPI.
  • Method Details

    • sparkMax

      public static SwerveMotors.SwerveMotor.Ctor sparkMax(int id, boolean inverted)
      Configures a Spark Max.
      Parameters:
      id - CAN ID of the device, as configured in the REV Hardware Client.
      inverted - If the motor is inverted.
    • sparkFlex

      public static SwerveMotors.SwerveMotor.Ctor sparkFlex(int id, boolean inverted)
      Configures a Spark Flex.
      Parameters:
      id - CAN ID of the device, as configured in the REV Hardware Client.
      inverted - If the motor is inverted.
    • talonFX

      public static SwerveMotors.SwerveMotor.Ctor talonFX(int id, boolean inverted)
      Configures a TalonFX.
      Parameters:
      id - CAN ID of the device, as configured in Phoenix Tuner.
      inverted - If the motor is inverted.