Enum Class Motors

java.lang.Object
java.lang.Enum<Motors>
tagalong.devices.Motors
All Implemented Interfaces:
Serializable, Comparable<Motors>, Constable, CanDeviceInterface

public enum Motors extends Enum<Motors> implements CanDeviceInterface
Generic motor identifier enum
  • Enum Constant Details

    • KRAKEN_X60

      public static final Motors KRAKEN_X60
      Kraken X60
    • KRAKEN_X60_FOC

      public static final Motors KRAKEN_X60_FOC
      Kraken X60 in FOC mode
    • FALCON500

      public static final Motors FALCON500
      Falcon 500
    • FALCON500_FOC

      public static final Motors FALCON500_FOC
      Falcon 500 in FOC mode
    • KRAKEN_X44

      public static final Motors KRAKEN_X44
      Kraken X44 FUTURE DEV: Waiting for motor specifications v2025
    • KRAKEN_X44_FOC

      public static final Motors KRAKEN_X44_FOC
      Kraken X44 in FOC mode -- RPM WAITING FOR SPEC FUTURE DEV: Waiting for motor specifications v2025
  • Field Details

    • maxRPM

      public final double maxRPM
      Max free speed RPM and converted RPS of the motor
    • maxRPS

      public final double maxRPS
      Max free speed RPM and converted RPS of the motor
    • simSupplier

      Motor's simulation supplier
    • DEFAULT_STATOR_CURRENT_LIMIT_AMPS

      public static final double DEFAULT_STATOR_CURRENT_LIMIT_AMPS
      Default Stator and Supply current limits. We highly recommend that all Tagalong users configure these limits to the specific application
      See Also:
    • DEFAULT_SUPPLY_CURRENT_LIMIT_AMPS

      public static final double DEFAULT_SUPPLY_CURRENT_LIMIT_AMPS
      Default Stator and Supply current limits. We highly recommend that all Tagalong users configure these limits to the specific application
      See Also:
    • DEFAULT_SUPPLY_CURRENT_THRESHOLD_LIMIT_AMPS

      public static final double DEFAULT_SUPPLY_CURRENT_THRESHOLD_LIMIT_AMPS
      Default Stator and Supply current limits. We highly recommend that all Tagalong users configure these limits to the specific application
      See Also:
    • DEFAULT_SUPPLY_TIME_THRESHOLD

      public static final double DEFAULT_SUPPLY_TIME_THRESHOLD
      Default Stator and Supply current limits. We highly recommend that all Tagalong users configure these limits to the specific application
      See Also:
  • Method Details

    • values

      public static Motors[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Motors valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDefaults

      public static com.ctre.phoenix6.configs.TalonFXConfiguration getDefaults()
      Returns:
      TalonFXConfiguration with Tagalong defaults