Added new SparkMAX analog encoder option, fixed 'none' absolute encoder type

This commit is contained in:
thenetworkgrinch
2023-12-05 16:25:42 -06:00
parent 04466ef81d
commit e0d572b5a5
126 changed files with 1012 additions and 343 deletions

View File

@@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Wed Nov 29 17:35:42 CST 2023 -->
<!-- Generated by javadoc (17) on Tue Dec 05 16:24:45 CST 2023 -->
<title>SwerveAbsoluteEncoder</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-11-29">
<meta name="dc.created" content="2023-12-05">
<meta name="description" content="declaration: package: swervelib.encoders, class: SwerveAbsoluteEncoder">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
@@ -77,7 +77,7 @@ loadScripts(document, 'script');</script>
<section class="class-description" id="class-description">
<dl class="notes">
<dt>Direct Known Subclasses:</dt>
<dd><code><a href="AnalogAbsoluteEncoderSwerve.html" title="class in swervelib.encoders">AnalogAbsoluteEncoderSwerve</a></code>, <code><a href="CanAndCoderSwerve.html" title="class in swervelib.encoders">CanAndCoderSwerve</a></code>, <code><a href="CANCoderSwerve.html" title="class in swervelib.encoders">CANCoderSwerve</a></code>, <code><a href="PWMDutyCycleEncoderSwerve.html" title="class in swervelib.encoders">PWMDutyCycleEncoderSwerve</a></code>, <code><a href="SparkMaxEncoderSwerve.html" title="class in swervelib.encoders">SparkMaxEncoderSwerve</a></code></dd>
<dd><code><a href="AnalogAbsoluteEncoderSwerve.html" title="class in swervelib.encoders">AnalogAbsoluteEncoderSwerve</a></code>, <code><a href="CanAndCoderSwerve.html" title="class in swervelib.encoders">CanAndCoderSwerve</a></code>, <code><a href="CANCoderSwerve.html" title="class in swervelib.encoders">CANCoderSwerve</a></code>, <code><a href="PWMDutyCycleEncoderSwerve.html" title="class in swervelib.encoders">PWMDutyCycleEncoderSwerve</a></code>, <code><a href="SparkMaxAnalogEncoderSwerve.html" title="class in swervelib.encoders">SparkMaxAnalogEncoderSwerve</a></code>, <code><a href="SparkMaxEncoderSwerve.html" title="class in swervelib.encoders">SparkMaxEncoderSwerve</a></code></dd>
</dl>
<hr>
<div class="type-signature"><span class="modifiers">public abstract class </span><span class="element-name type-name-label">SwerveAbsoluteEncoder</span>
@@ -157,6 +157,11 @@ loadScripts(document, 'script');</script>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Get the absolute position of the encoder.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>abstract double</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getVelocity()" class="member-name-link">getVelocity</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Get the velocity in degrees/sec.</div>
</div>
</div>
</div>
</div>
@@ -265,6 +270,17 @@ loadScripts(document, 'script');</script>
</dl>
</section>
</li>
<li>
<section class="detail" id="getVelocity()">
<h3>getVelocity</h3>
<div class="member-signature"><span class="modifiers">public abstract</span>&nbsp;<span class="return-type">double</span>&nbsp;<span class="element-name">getVelocity</span>()</div>
<div class="block">Get the velocity in degrees/sec.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>velocity in degrees/sec.</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>