Whether the swerve motor is a drive motor.
diff --git a/docs/index.html b/docs/index.html
index b8d173c..7756bd3 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -2,7 +2,7 @@
-
+
Direct Known Subclasses:
-SparkMaxSwerve
+SparkMaxSwerve , TalonFXSwerve , TalonSRXSwerve
public abstract class SwerveMotor
diff --git a/docs/swervelib/motors/TalonFXSwerve.CTRE_pidIdx.html b/docs/swervelib/motors/TalonFXSwerve.CTRE_pidIdx.html
new file mode 100644
index 0000000..5c0077d
--- /dev/null
+++ b/docs/swervelib/motors/TalonFXSwerve.CTRE_pidIdx.html
@@ -0,0 +1,450 @@
+
+
+
+
+
+TalonFXSwerve.CTRE_pidIdx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Enum Constant Summary
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+Constructors
+
+Modifier
+Constructor
+Description
+
+
+private
+CTRE_pidIdx ()
+
+
+
+
+
+
+
+
+
+
+
+
+Method Summary
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+
+CTRE_pidIdx
+private CTRE_pidIdx()
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+
+
+
+
+
+
+
+
+valueOf
+public static TalonFXSwerve.CTRE_pidIdx valueOf(String name)
+Returns the enum constant of this type with the specified name.
+The string must match exactly an identifier used to declare an
+enum constant in this type. (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 type has no constant with the specified name
+NullPointerException - if the argument is null
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/swervelib/motors/TalonFXSwerve.CTRE_remoteSensor.html b/docs/swervelib/motors/TalonFXSwerve.CTRE_remoteSensor.html
new file mode 100644
index 0000000..951c78e
--- /dev/null
+++ b/docs/swervelib/motors/TalonFXSwerve.CTRE_remoteSensor.html
@@ -0,0 +1,424 @@
+
+
+
+
+
+TalonFXSwerve.CTRE_remoteSensor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Enum Constant Summary
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+Constructors
+
+Modifier
+Constructor
+Description
+
+
+private
+CTRE_remoteSensor ()
+
+
+
+
+
+
+
+
+
+
+
+
+Method Summary
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Enum Constant Detail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+
+
+
+
+
+
+
+
+valueOf
+public static TalonFXSwerve.CTRE_remoteSensor valueOf(String name)
+Returns the enum constant of this type with the specified name.
+The string must match exactly an identifier used to declare an
+enum constant in this type. (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 type has no constant with the specified name
+NullPointerException - if the argument is null
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/swervelib/motors/TalonFXSwerve.CTRE_slotIdx.html b/docs/swervelib/motors/TalonFXSwerve.CTRE_slotIdx.html
new file mode 100644
index 0000000..c327356
--- /dev/null
+++ b/docs/swervelib/motors/TalonFXSwerve.CTRE_slotIdx.html
@@ -0,0 +1,450 @@
+
+
+
+
+
+TalonFXSwerve.CTRE_slotIdx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Enum Constant Summary
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+Constructors
+
+Modifier
+Constructor
+Description
+
+
+private
+CTRE_slotIdx ()
+
+
+
+
+
+
+
+
+
+
+
+
+Method Summary
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+
+CTRE_slotIdx
+private CTRE_slotIdx()
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+
+
+
+
+
+
+
+
+valueOf
+public static TalonFXSwerve.CTRE_slotIdx valueOf(String name)
+Returns the enum constant of this type with the specified name.
+The string must match exactly an identifier used to declare an
+enum constant in this type. (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 type has no constant with the specified name
+NullPointerException - if the argument is null
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/swervelib/motors/TalonFXSwerve.html b/docs/swervelib/motors/TalonFXSwerve.html
new file mode 100644
index 0000000..6d8f8af
--- /dev/null
+++ b/docs/swervelib/motors/TalonFXSwerve.html
@@ -0,0 +1,902 @@
+
+
+
+
+
+TalonFXSwerve
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Field Summary
+
+Fields
+
+Modifier and Type
+Field
+Description
+
+
+private boolean
+absoluteEncoder
+
+Whether the absolute encoder is integrated.
+
+
+
+private boolean
+factoryDefaultOccurred
+
+Factory default already occurred.
+
+
+
+(package private) com.ctre.phoenix.motorcontrol.can.WPI_TalonFX
+motor
+
+TalonFX motor controller.
+
+
+
+private double
+positionConversionFactor
+
+The position conversion factor.
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+Constructors
+
+Constructor
+Description
+
+
+TalonFXSwerve (int id,
+ boolean isDriveMotor)
+
+Construct the TalonFX swerve motor given the ID.
+
+
+
+TalonFXSwerve (int id,
+ String canbus,
+ boolean isDriveMotor)
+
+Construct the TalonFX swerve motor given the ID and CANBus.
+
+
+
+TalonFXSwerve (com.ctre.phoenix.motorcontrol.can.WPI_TalonFX motor,
+ boolean isDriveMotor)
+
+Constructor for TalonFX swerve motor.
+
+
+
+
+
+
+
+
+
+
+
+
+Method Summary
+
+All Methods Instance Methods Concrete Methods
+
+Modifier and Type
+Method
+Description
+
+
+void
+burnFlash ()
+
+Save the configurations from flash to EEPROM.
+
+
+
+void
+clearStickyFaults ()
+
+Clear the sticky faults on the motor controller.
+
+
+
+void
+configureIntegratedEncoder (double positionConversionFactor)
+
+Configure the integrated encoder for the swerve module.
+
+
+
+void
+configurePIDF (PIDFConfig config)
+
+Configure the PIDF values for the closed loop controller.
+
+
+
+void
+configurePIDWrapping (double minInput,
+ double maxInput)
+
+Configure the PID wrapping for the position closed loop controller.
+
+
+
+void
+factoryDefaults ()
+
+Configure the factory defaults.
+
+
+
+Object
+getMotor ()
+
+Get the motor object from the module.
+
+
+
+double
+getPosition ()
+
+Get the position of the integrated encoder.
+
+
+
+double
+getVelocity ()
+
+Get the velocity of the integrated encoder.
+
+
+
+boolean
+isAttachedAbsoluteEncoder ()
+
+Queries whether the absolute encoder is directly attached to the motor controller.
+
+
+
+void
+set (double percentOutput)
+
+Set the percentage output.
+
+
+
+SwerveMotor
+setAbsoluteEncoder (SwerveAbsoluteEncoder encoder)
+
+Set the absolute encoder to be a compatible absolute encoder.
+
+
+
+void
+setCurrentLimit (int currentLimit)
+
+Set the current limit for the swerve drive motor, remember this may cause jumping if used in conjunction with
+ voltage compensation.
+
+
+
+void
+setInverted (boolean inverted)
+
+Set the motor to be inverted.
+
+
+
+void
+setLoopRampRate (double rampRate)
+
+Set the maximum rate the open/closed loop output can change by.
+
+
+
+void
+setMotorBrake (boolean isBrakeMode)
+
+Set the idle mode.
+
+
+
+void
+setPosition (double position)
+
+Set the integrated encoder position.
+
+
+
+void
+setReference (double setpoint,
+ double feedforward)
+
+Set the closed loop PID controller reference point.
+
+
+
+void
+setVoltageCompensation (double nominalVoltage)
+
+Set the voltage compensation for the swerve module motor.
+
+
+
+
+
+
+
+Methods inherited from class java.lang.Object
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+
+TalonFXSwerve
+public TalonFXSwerve(com.ctre.phoenix.motorcontrol.can.WPI_TalonFX motor,
+ boolean isDriveMotor)
+Constructor for TalonFX swerve motor.
+
+Parameters:
+motor - Motor to use.
+isDriveMotor - Whether this motor is a drive motor.
+
+
+
+
+
+
+
+
+TalonFXSwerve
+public TalonFXSwerve(int id,
+ String canbus,
+ boolean isDriveMotor)
+Construct the TalonFX swerve motor given the ID and CANBus.
+
+Parameters:
+id - ID of the TalonFX on the CANBus.
+canbus - CANBus on which the TalonFX is on.
+isDriveMotor - Whether the motor is a drive or steering motor.
+
+
+
+
+
+
+
+
+TalonFXSwerve
+public TalonFXSwerve(int id,
+ boolean isDriveMotor)
+Construct the TalonFX swerve motor given the ID.
+
+Parameters:
+id - ID of the TalonFX on the canbus.
+isDriveMotor - Whether the motor is a drive or steering motor.
+
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+configurePIDWrapping
+public void configurePIDWrapping(double minInput,
+ double maxInput)
+Configure the PID wrapping for the position closed loop controller.
+
+Specified by:
+configurePIDWrapping in class SwerveMotor
+Parameters:
+minInput - Minimum PID input.
+maxInput - Maximum PID input.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+setReference
+public void setReference(double setpoint,
+ double feedforward)
+Set the closed loop PID controller reference point.
+
+Specified by:
+setReference in class SwerveMotor
+Parameters:
+setpoint - Setpoint in MPS or Angle in degrees.
+feedforward - Feedforward in volt-meter-per-second or kV.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+setCurrentLimit
+public void setCurrentLimit(int currentLimit)
+Set the current limit for the swerve drive motor, remember this may cause jumping if used in conjunction with
+ voltage compensation. This is useful to protect the motor from current spikes.
+
+Specified by:
+setCurrentLimit in class SwerveMotor
+Parameters:
+currentLimit - Current limit in AMPS at free speed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/swervelib/motors/TalonSRXSwerve.CTRE_pidIdx.html b/docs/swervelib/motors/TalonSRXSwerve.CTRE_pidIdx.html
new file mode 100644
index 0000000..3741af5
--- /dev/null
+++ b/docs/swervelib/motors/TalonSRXSwerve.CTRE_pidIdx.html
@@ -0,0 +1,450 @@
+
+
+
+
+
+TalonSRXSwerve.CTRE_pidIdx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Enum Constant Summary
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+Constructors
+
+Modifier
+Constructor
+Description
+
+
+private
+CTRE_pidIdx ()
+
+
+
+
+
+
+
+
+
+
+
+
+Method Summary
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+
+CTRE_pidIdx
+private CTRE_pidIdx()
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+
+
+
+
+
+
+
+
+valueOf
+public static TalonSRXSwerve.CTRE_pidIdx valueOf(String name)
+Returns the enum constant of this type with the specified name.
+The string must match exactly an identifier used to declare an
+enum constant in this type. (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 type has no constant with the specified name
+NullPointerException - if the argument is null
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/swervelib/motors/TalonSRXSwerve.CTRE_remoteSensor.html b/docs/swervelib/motors/TalonSRXSwerve.CTRE_remoteSensor.html
new file mode 100644
index 0000000..34d4bb1
--- /dev/null
+++ b/docs/swervelib/motors/TalonSRXSwerve.CTRE_remoteSensor.html
@@ -0,0 +1,424 @@
+
+
+
+
+
+TalonSRXSwerve.CTRE_remoteSensor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Enum Constant Summary
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+Constructors
+
+Modifier
+Constructor
+Description
+
+
+private
+CTRE_remoteSensor ()
+
+
+
+
+
+
+
+
+
+
+
+
+Method Summary
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Enum Constant Detail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+
+
+
+
+
+
+
+
+valueOf
+public static TalonSRXSwerve.CTRE_remoteSensor valueOf(String name)
+Returns the enum constant of this type with the specified name.
+The string must match exactly an identifier used to declare an
+enum constant in this type. (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 type has no constant with the specified name
+NullPointerException - if the argument is null
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/swervelib/motors/TalonSRXSwerve.CTRE_slotIdx.html b/docs/swervelib/motors/TalonSRXSwerve.CTRE_slotIdx.html
new file mode 100644
index 0000000..bd0df16
--- /dev/null
+++ b/docs/swervelib/motors/TalonSRXSwerve.CTRE_slotIdx.html
@@ -0,0 +1,450 @@
+
+
+
+
+
+TalonSRXSwerve.CTRE_slotIdx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Enum Constant Summary
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+Constructors
+
+Modifier
+Constructor
+Description
+
+
+private
+CTRE_slotIdx ()
+
+
+
+
+
+
+
+
+
+
+
+
+Method Summary
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+
+CTRE_slotIdx
+private CTRE_slotIdx()
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+
+
+
+
+
+
+
+
+valueOf
+public static TalonSRXSwerve.CTRE_slotIdx valueOf(String name)
+Returns the enum constant of this type with the specified name.
+The string must match exactly an identifier used to declare an
+enum constant in this type. (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 type has no constant with the specified name
+NullPointerException - if the argument is null
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/swervelib/motors/TalonSRXSwerve.html b/docs/swervelib/motors/TalonSRXSwerve.html
new file mode 100644
index 0000000..25896ae
--- /dev/null
+++ b/docs/swervelib/motors/TalonSRXSwerve.html
@@ -0,0 +1,915 @@
+
+
+
+
+
+TalonSRXSwerve
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Nested Class Summary
+
+
+
+
+
+
+
+
+
+
+Field Summary
+
+Fields
+
+Modifier and Type
+Field
+Description
+
+
+private boolean
+absoluteEncoder
+
+Whether the absolute encoder is integrated.
+
+
+
+private boolean
+factoryDefaultOccurred
+
+Factory default already occurred.
+
+
+
+(package private) com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX
+motor
+
+TalonSRX motor controller.
+
+
+
+private double
+positionConversionFactor
+
+The position conversion factor.
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+Constructors
+
+Constructor
+Description
+
+
+TalonSRXSwerve (int id,
+ boolean isDriveMotor)
+
+Construct the TalonSRX swerve motor given the ID.
+
+
+
+TalonSRXSwerve (com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX motor,
+ boolean isDriveMotor)
+
+Constructor for TalonSRX swerve motor.
+
+
+
+
+
+
+
+
+
+
+
+
+Method Summary
+
+All Methods Instance Methods Concrete Methods
+
+Modifier and Type
+Method
+Description
+
+
+void
+burnFlash ()
+
+Save the configurations from flash to EEPROM.
+
+
+
+void
+clearStickyFaults ()
+
+Clear the sticky faults on the motor controller.
+
+
+
+void
+configureIntegratedEncoder (double positionConversionFactor)
+
+Configure the integrated encoder for the swerve module.
+
+
+
+void
+configurePIDF (PIDFConfig config)
+
+Configure the PIDF values for the closed loop controller.
+
+
+
+void
+configurePIDWrapping (double minInput,
+ double maxInput)
+
+Configure the PID wrapping for the position closed loop controller.
+
+
+
+void
+factoryDefaults ()
+
+Configure the factory defaults.
+
+
+
+Object
+getMotor ()
+
+Get the motor object from the module.
+
+
+
+double
+getPosition ()
+
+Get the position of the integrated encoder.
+
+
+
+double
+getVelocity ()
+
+Get the velocity of the integrated encoder.
+
+
+
+boolean
+isAttachedAbsoluteEncoder ()
+
+Queries whether the absolute encoder is directly attached to the motor controller.
+
+
+
+void
+set (double percentOutput)
+
+Set the percentage output.
+
+
+
+SwerveMotor
+setAbsoluteEncoder (SwerveAbsoluteEncoder encoder)
+
+Set the absolute encoder to be a compatible absolute encoder.
+
+
+
+void
+setCurrentLimit (int currentLimit)
+
+Set the current limit for the swerve drive motor, remember this may cause jumping if used in conjunction with
+ voltage compensation.
+
+
+
+void
+setInverted (boolean inverted)
+
+Set the motor to be inverted.
+
+
+
+void
+setLoopRampRate (double rampRate)
+
+Set the maximum rate the open/closed loop output can change by.
+
+
+
+void
+setMotorBrake (boolean isBrakeMode)
+
+Set the idle mode.
+
+
+
+void
+setPosition (double position)
+
+Set the integrated encoder position.
+
+
+
+void
+setReference (double setpoint,
+ double feedforward)
+
+Set the closed loop PID controller reference point.
+
+
+
+void
+setVoltageCompensation (double nominalVoltage)
+
+Set the voltage compensation for the swerve module motor.
+
+
+
+
+
+
+
+Methods inherited from class java.lang.Object
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+
+TalonSRXSwerve
+public TalonSRXSwerve(com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX motor,
+ boolean isDriveMotor)
+Constructor for TalonSRX swerve motor.
+
+Parameters:
+motor - Motor to use.
+isDriveMotor - Whether this motor is a drive motor.
+
+
+
+
+
+
+
+
+TalonSRXSwerve
+public TalonSRXSwerve(int id,
+ boolean isDriveMotor)
+Construct the TalonSRX swerve motor given the ID.
+
+Parameters:
+id - ID of the TalonSRX on the canbus.
+isDriveMotor - Whether the motor is a drive or steering motor.
+
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+configurePIDWrapping
+public void configurePIDWrapping(double minInput,
+ double maxInput)
+Configure the PID wrapping for the position closed loop controller.
+
+Specified by:
+configurePIDWrapping in class SwerveMotor
+Parameters:
+minInput - Minimum PID input.
+maxInput - Maximum PID input.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+setReference
+public void setReference(double setpoint,
+ double feedforward)
+Set the closed loop PID controller reference point.
+
+Specified by:
+setReference in class SwerveMotor
+Parameters:
+setpoint - Setpoint in MPS or Angle in degrees.
+feedforward - Feedforward in volt-meter-per-second or kV.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+setCurrentLimit
+public void setCurrentLimit(int currentLimit)
+Set the current limit for the swerve drive motor, remember this may cause jumping if used in conjunction with
+ voltage compensation. This is useful to protect the motor from current spikes.
+
+Specified by:
+setCurrentLimit in class SwerveMotor
+Parameters:
+currentLimit - Current limit in AMPS at free speed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/swervelib/motors/package-summary.html b/docs/swervelib/motors/package-summary.html
index ad76058..73832c2 100644
--- a/docs/swervelib/motors/package-summary.html
+++ b/docs/swervelib/motors/package-summary.html
@@ -2,7 +2,7 @@
-
+
swervelib.motors
@@ -118,6 +118,18 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
Swerve motor abstraction which defines a standard interface for motors within a swerve module.
+
+TalonFXSwerve
+
+TalonFX Swerve Motor.
+
+
+
+TalonSRXSwerve
+
+WPI_TalonSRX Swerve Motor.
+
+
@@ -135,6 +147,24 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
REV Slots for PID configuration.
+