Added support for Falcons, and the ability to disable the CANCoders

This commit is contained in:
thenetworkgrinch
2023-02-16 21:21:26 -06:00
parent e8f6ca3659
commit c747645bcc
118 changed files with 2706 additions and 370 deletions

View File

@@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Wed Feb 15 22:17:49 CST 2023 -->
<!-- Generated by javadoc (17) on Thu Feb 16 21:18:46 CST 2023 -->
<title>SwerveMath</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-02-15">
<meta name="dc.created" content="2023-02-16">
<meta name="description" content="declaration: package: swervelib.math, class: SwerveMath">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
@@ -176,6 +176,11 @@ loadScripts(document, 'script');</script>
<div class="block">Limits a commanded velocity to prevent exceeding the maximum acceleration given by
<a href="#calcMaxAccel(edu.wpi.first.math.geometry.Rotation2d,double,double,edu.wpi.first.math.geometry.Translation3d,swervelib.parser.SwerveDriveConfiguration)"><code>calcMaxAccel(Rotation2d, double, double, Translation3d, SwerveDriveConfiguration)</code></a>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static double</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#normalizeAngle(double)" class="member-name-link">normalizeAngle</a><wbr>(double&nbsp;angle)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Normalize an angle to be within 0 to 360.</div>
</div>
</div>
</div>
</div>
@@ -244,6 +249,19 @@ loadScripts(document, 'script');</script>
</section>
</li>
<li>
<section class="detail" id="normalizeAngle(double)">
<h3>normalizeAngle</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">double</span>&nbsp;<span class="element-name">normalizeAngle</span><wbr><span class="parameters">(double&nbsp;angle)</span></div>
<div class="block">Normalize an angle to be within 0 to 360.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>angle</code> - Angle in degrees.</dd>
<dt>Returns:</dt>
<dd>Normalized angle in degrees.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="applyDeadband(double,boolean,double)">
<h3>applyDeadband</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">double</span>&nbsp;<span class="element-name">applyDeadband</span><wbr><span class="parameters">(double&nbsp;value,