<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">SwerveModule</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></span></div>
<divclass="col-first even-row-color"><code>private final <ahref="encoders/SwerveAbsoluteEncoder.html"title="class in swervelib.encoders">SwerveAbsoluteEncoder</a></code></div>
<divclass="col-first odd-row-color"><code>private final <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-first even-row-color"><code>final <ahref="parser/Cache.html"title="class in swervelib.parser">Cache</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>></code></div>
<divclass="col-first odd-row-color"><code>private final <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-first even-row-color"><code>private final <ahref="motors/SwerveMotor.html"title="class in swervelib.motors">SwerveMotor</a></code></div>
<divclass="col-first odd-row-color"><code>final <ahref="parser/SwerveModuleConfiguration.html"title="class in swervelib.parser">SwerveModuleConfiguration</a></code></div>
<divclass="col-first even-row-color"><code>private final <ahref="motors/SwerveMotor.html"title="class in swervelib.motors">SwerveMotor</a></code></div>
<divclass="col-first even-row-color"><code>final <ahref="parser/Cache.html"title="class in swervelib.parser">Cache</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>></code></div>
<divclass="block">Drive motor position cache.</div>
</div>
<divclass="col-first odd-row-color"><code>final <ahref="parser/Cache.html"title="class in swervelib.parser">Cache</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>></code></div>
<divclass="block">An <ahref="telemetry/Alert.html"title="class in swervelib.telemetry"><code>Alert</code></a> for if pushing the Absolute Encoder offset to the encoder fails.</div>
<divclass="block">An <ahref="telemetry/Alert.html"title="class in swervelib.telemetry"><code>Alert</code></a> for if there is no Absolute Encoder on the module.</div>
<divclass="col-first odd-row-color"><code>private final <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-first even-row-color"><code>private final <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-first odd-row-color"><code>private final <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-first even-row-color"><code>private <ahref="simulation/SwerveModuleSimulation.html"title="class in swervelib.simulation">SwerveModuleSimulation</a></code></div>
<divclass="block">Get the <ahref="encoders/SwerveAbsoluteEncoder.html"title="class in swervelib.encoders"><code>SwerveAbsoluteEncoder</code></a> for the <ahref="SwerveModule.html"title="class in swervelib"><code>SwerveModule</code></a>.</div>
<divclass="block">Get the angle <ahref="motors/SwerveMotor.html"title="class in swervelib.motors"><code>SwerveMotor</code></a> for the <ahref="SwerveModule.html"title="class in swervelib"><code>SwerveModule</code></a>.</div>
<divclass="block">Fetch the <ahref="parser/SwerveModuleConfiguration.html"title="class in swervelib.parser"><code>SwerveModuleConfiguration</code></a> for the <ahref="SwerveModule.html"title="class in swervelib"><code>SwerveModule</code></a> with the parsed configurations.</div>
<divclass="block">Get the drive <ahref="motors/SwerveMotor.html"title="class in swervelib.motors"><code>SwerveMotor</code></a> for the <ahref="SwerveModule.html"title="class in swervelib"><code>SwerveModule</code></a>.</div>
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="member-signature"><spanclass="modifiers">public final</span> <spanclass="return-type"><ahref="parser/SwerveModuleConfiguration.html"title="class in swervelib.parser">SwerveModuleConfiguration</a></span> <spanclass="element-name">configuration</span></div>
<divclass="member-signature"><spanclass="modifiers">public final</span> <spanclass="return-type"><ahref="parser/Cache.html"title="class in swervelib.parser">Cache</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>></span> <spanclass="element-name">absolutePositionCache</span></div>
<divclass="block">Absolute encoder position cache.</div>
</section>
</li>
<li>
<sectionclass="detail"id="drivePositionCache">
<h3>drivePositionCache</h3>
<divclass="member-signature"><spanclass="modifiers">public final</span> <spanclass="return-type"><ahref="parser/Cache.html"title="class in swervelib.parser">Cache</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>></span> <spanclass="element-name">drivePositionCache</span></div>
<divclass="block">Drive motor position cache.</div>
</section>
</li>
<li>
<sectionclass="detail"id="driveVelocityCache">
<h3>driveVelocityCache</h3>
<divclass="member-signature"><spanclass="modifiers">public final</span> <spanclass="return-type"><ahref="parser/Cache.html"title="class in swervelib.parser">Cache</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>></span> <spanclass="element-name">driveVelocityCache</span></div>
<divclass="block">Drive motor velocity cache.</div>
<divclass="member-signature"><spanclass="modifiers">private final</span> <spanclass="return-type"><ahref="motors/SwerveMotor.html"title="class in swervelib.motors">SwerveMotor</a></span> <spanclass="element-name">angleMotor</span></div>
<divclass="block">Swerve Motors.</div>
</section>
</li>
<li>
<sectionclass="detail"id="driveMotor">
<h3>driveMotor</h3>
<divclass="member-signature"><spanclass="modifiers">private final</span> <spanclass="return-type"><ahref="motors/SwerveMotor.html"title="class in swervelib.motors">SwerveMotor</a></span> <spanclass="element-name">driveMotor</span></div>
<divclass="block">Swerve Motors.</div>
</section>
</li>
<li>
<sectionclass="detail"id="absoluteEncoder">
<h3>absoluteEncoder</h3>
<divclass="member-signature"><spanclass="modifiers">private final</span> <spanclass="return-type"><ahref="encoders/SwerveAbsoluteEncoder.html"title="class in swervelib.encoders">SwerveAbsoluteEncoder</a></span> <spanclass="element-name">absoluteEncoder</span></div>
<divclass="block">Absolute encoder for swerve drive.</div>
<divclass="member-signature"><spanclass="modifiers">private final</span> <spanclass="return-type"><ahref="telemetry/Alert.html"title="class in swervelib.telemetry">Alert</a></span> <spanclass="element-name">encoderOffsetWarning</span></div>
<divclass="block">An <ahref="telemetry/Alert.html"title="class in swervelib.telemetry"><code>Alert</code></a> for if pushing the Absolute Encoder offset to the encoder fails.</div>
</section>
</li>
<li>
<sectionclass="detail"id="noEncoderWarning">
<h3>noEncoderWarning</h3>
<divclass="member-signature"><spanclass="modifiers">private final</span> <spanclass="return-type"><ahref="telemetry/Alert.html"title="class in swervelib.telemetry">Alert</a></span> <spanclass="element-name">noEncoderWarning</span></div>
<divclass="block">An <ahref="telemetry/Alert.html"title="class in swervelib.telemetry"><code>Alert</code></a> for if there is no Absolute Encoder on the module.</div>
<divclass="member-signature"><spanclass="modifiers">private final</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">rawAbsoluteAngleName</span></div>
<divclass="block">NT3 Raw Absolute Angle publisher for the absolute encoder.</div>
</section>
</li>
<li>
<sectionclass="detail"id="adjAbsoluteAngleName">
<h3>adjAbsoluteAngleName</h3>
<divclass="member-signature"><spanclass="modifiers">private final</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">adjAbsoluteAngleName</span></div>
<divclass="block">NT3 Adjusted Absolute angle publisher for the absolute encoder.</div>
<divclass="member-signature"><spanclass="modifiers">private final</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">absoluteEncoderIssueName</span></div>
<divclass="member-signature"><spanclass="modifiers">private final</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">rawAngleName</span></div>
<divclass="block">NT3 raw angle motor.</div>
</section>
</li>
<li>
<sectionclass="detail"id="rawDriveName">
<h3>rawDriveName</h3>
<divclass="member-signature"><spanclass="modifiers">private final</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">rawDriveName</span></div>
<divclass="block">Angle offset from the absolute encoder.</div>
</section>
</li>
<li>
<sectionclass="detail"id="simModule">
<h3>simModule</h3>
<divclass="member-signature"><spanclass="modifiers">private</span> <spanclass="return-type"><ahref="simulation/SwerveModuleSimulation.html"title="class in swervelib.simulation">SwerveModuleSimulation</a></span> <spanclass="element-name">simModule</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">setDrivePIDF</span><wbr><spanclass="parameters">(<ahref="parser/PIDFConfig.html"title="class in swervelib.parser">PIDFConfig</a> config)</span></div>
<divclass="block">Set the drive PIDF values.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>config</code> - <ahref="parser/PIDFConfig.html"title="class in swervelib.parser"><code>PIDFConfig</code></a> of that should be set.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getDrivePIDF()">
<h3>getDrivePIDF</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="parser/PIDFConfig.html"title="class in swervelib.parser">PIDFConfig</a></span> <spanclass="element-name">getDrivePIDF</span>()</div>
<divclass="block">Get the current drive motor PIDF values.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd><ahref="parser/PIDFConfig.html"title="class in swervelib.parser"><code>PIDFConfig</code></a> of the drive motor.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">setAnglePIDF</span><wbr><spanclass="parameters">(<ahref="parser/PIDFConfig.html"title="class in swervelib.parser">PIDFConfig</a> config)</span></div>
<divclass="block">Set the angle/azimuth/steering motor PID</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>config</code> - <ahref="parser/PIDFConfig.html"title="class in swervelib.parser"><code>PIDFConfig</code></a> of that should be set.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getAnglePIDF()">
<h3>getAnglePIDF</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="parser/PIDFConfig.html"title="class in swervelib.parser">PIDFConfig</a></span> <spanclass="element-name">getAnglePIDF</span>()</div>
<divclass="block">Get the current angle/azimuth/steering motor PIDF values.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd><ahref="parser/PIDFConfig.html"title="class in swervelib.parser"><code>PIDFConfig</code></a> of the angle motor.</dd>
<divclass="block">Set the desired state of the swerve module. <br/><b>WARNING: If you are not using one of the functions from
<ahref="SwerveDrive.html"title="class in swervelib"><code>SwerveDrive</code></a> you may screw up <ahref="SwerveDrive.html#kinematics"><code>SwerveDrive.kinematics</code></a></b></div>
<divclass="block">Set the conversion factor for the angle/azimuth motor controller.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>conversionFactor</code> - Angle motor conversion factor for PID, should be generated from
<ahref="math/SwerveMath.html#calculateDegreesPerSteeringRotation(double,double)"><code>SwerveMath.calculateDegreesPerSteeringRotation(double, double)</code></a> or calculated.</dd>
<divclass="block">Set the conversion factor for the drive motor controller.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>conversionFactor</code> - Drive motor conversion factor for PID, should be generated from
<ahref="math/SwerveMath.html#calculateMetersPerRotation(double,double,double)"><code>SwerveMath.calculateMetersPerRotation(double, double, double)</code></a> or calculated.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="motors/SwerveMotor.html"title="class in swervelib.motors">SwerveMotor</a></span> <spanclass="element-name">getAngleMotor</span>()</div>
<divclass="block">Get the angle <ahref="motors/SwerveMotor.html"title="class in swervelib.motors"><code>SwerveMotor</code></a> for the <ahref="SwerveModule.html"title="class in swervelib"><code>SwerveModule</code></a>.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd><ahref="motors/SwerveMotor.html"title="class in swervelib.motors"><code>SwerveMotor</code></a> for the angle/steering motor of the module.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getDriveMotor()">
<h3>getDriveMotor</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="motors/SwerveMotor.html"title="class in swervelib.motors">SwerveMotor</a></span> <spanclass="element-name">getDriveMotor</span>()</div>
<divclass="block">Get the drive <ahref="motors/SwerveMotor.html"title="class in swervelib.motors"><code>SwerveMotor</code></a> for the <ahref="SwerveModule.html"title="class in swervelib"><code>SwerveModule</code></a>.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd><ahref="motors/SwerveMotor.html"title="class in swervelib.motors"><code>SwerveMotor</code></a> for the drive motor of the module.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="encoders/SwerveAbsoluteEncoder.html"title="class in swervelib.encoders">SwerveAbsoluteEncoder</a></span> <spanclass="element-name">getAbsoluteEncoder</span>()</div>
<divclass="block">Get the <ahref="encoders/SwerveAbsoluteEncoder.html"title="class in swervelib.encoders"><code>SwerveAbsoluteEncoder</code></a> for the <ahref="SwerveModule.html"title="class in swervelib"><code>SwerveModule</code></a>.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd><ahref="encoders/SwerveAbsoluteEncoder.html"title="class in swervelib.encoders"><code>SwerveAbsoluteEncoder</code></a> for the swerve module.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="parser/SwerveModuleConfiguration.html"title="class in swervelib.parser">SwerveModuleConfiguration</a></span> <spanclass="element-name">getConfiguration</span>()</div>
<divclass="block">Fetch the <ahref="parser/SwerveModuleConfiguration.html"title="class in swervelib.parser"><code>SwerveModuleConfiguration</code></a> for the <ahref="SwerveModule.html"title="class in swervelib"><code>SwerveModule</code></a> with the parsed configurations.</div>
<dd><ahref="parser/SwerveModuleConfiguration.html"title="class in swervelib.parser"><code>SwerveModuleConfiguration</code></a> for the <ahref="SwerveModule.html"title="class in swervelib"><code>SwerveModule</code></a>.</dd>