mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-21 06:31:40 +00:00
Fixed issue with angle optimization
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) -->
|
||||
<title>SwerveModuleState2 (YAGSL-Lib API)</title>
|
||||
<!-- Generated by javadoc (17) on Tue Aug 29 19:54:45 CDT 2023 -->
|
||||
<title>SwerveModuleState2</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-08-29">
|
||||
<meta name="description" content="declaration: package: swervelib.math, class: SwerveModuleState2">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<link rel="stylesheet" type="text/css" href="../../script-dir/jquery-ui.min.css" title="Style">
|
||||
<link rel="stylesheet" type="text/css" href="../../jquery-ui.overrides.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
<script type="text/javascript" src="../../script-dir/jquery-3.6.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../script-dir/jquery-3.5.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../script-dir/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
@@ -35,7 +36,7 @@ loadScripts(document, 'script');</script>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../index-all.html">Index</a></li>
|
||||
<li><a href="../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -128,8 +129,7 @@ loadScripts(document, 'script');</script>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(edu.wpi.first.math.kinematics.SwerveModuleState,double)" class="member-name-link">SwerveModuleState2</a><wbr>(edu.wpi.first.math.kinematics.SwerveModuleState state,
|
||||
double omegaRadPerSecond)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Create a <a href="SwerveModuleState2.html" title="class in swervelib.math"><code>SwerveModuleState2</code></a> based on the <code>SwerveModuleState</code> with the radians per
|
||||
second defined.</div>
|
||||
<div class="block">Create a <a href="SwerveModuleState2.html" title="class in swervelib.math"><code>SwerveModuleState2</code></a> based on the <code>SwerveModuleState</code> with the radians per second defined.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -156,8 +156,8 @@ loadScripts(document, 'script');</script>
|
||||
<a href="SwerveModuleState2.html" title="class in swervelib.math">SwerveModuleState2</a> lastState,
|
||||
double moduleSteerFeedForwardClosedLoop)</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||||
<div class="block">Minimize the change in heading the desired swerve module state would require by potentially
|
||||
reversing the direction the wheel spins.</div>
|
||||
<div class="block">Minimize the change in heading the desired swerve module state would require by potentially reversing the direction
|
||||
the wheel spins.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>edu.wpi.first.math.kinematics.SwerveModuleState</code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toSwerveModuleState()" class="member-name-link">toSwerveModuleState</a>()</code></div>
|
||||
@@ -226,8 +226,7 @@ loadScripts(document, 'script');</script>
|
||||
<h3>SwerveModuleState2</h3>
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">SwerveModuleState2</span><wbr><span class="parameters">(edu.wpi.first.math.kinematics.SwerveModuleState state,
|
||||
double omegaRadPerSecond)</span></div>
|
||||
<div class="block">Create a <a href="SwerveModuleState2.html" title="class in swervelib.math"><code>SwerveModuleState2</code></a> based on the <code>SwerveModuleState</code> with the radians per
|
||||
second defined.</div>
|
||||
<div class="block">Create a <a href="SwerveModuleState2.html" title="class in swervelib.math"><code>SwerveModuleState2</code></a> based on the <code>SwerveModuleState</code> with the radians per second defined.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>state</code> - First order kinematic module state.</dd>
|
||||
@@ -250,16 +249,15 @@ loadScripts(document, 'script');</script>
|
||||
edu.wpi.first.math.geometry.Rotation2d currentAngle,
|
||||
<a href="SwerveModuleState2.html" title="class in swervelib.math">SwerveModuleState2</a> lastState,
|
||||
double moduleSteerFeedForwardClosedLoop)</span></div>
|
||||
<div class="block">Minimize the change in heading the desired swerve module state would require by potentially
|
||||
reversing the direction the wheel spins. If this is used with the PIDController class's
|
||||
continuous input functionality, the furthest a wheel will ever rotate is 90 degrees.</div>
|
||||
<div class="block">Minimize the change in heading the desired swerve module state would require by potentially reversing the direction
|
||||
the wheel spins. If this is used with the PIDController class's continuous input functionality, the furthest a
|
||||
wheel will ever rotate is 90 degrees.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>desiredState</code> - The desired state.</dd>
|
||||
<dd><code>currentAngle</code> - The current module angle.</dd>
|
||||
<dd><code>lastState</code> - The last state of the module.</dd>
|
||||
<dd><code>moduleSteerFeedForwardClosedLoop</code> - The module feed forward closed loop for the angle
|
||||
motor.</dd>
|
||||
<dd><code>moduleSteerFeedForwardClosedLoop</code> - The module feed forward closed loop for the angle motor.</dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>Optimized swerve module state.</dd>
|
||||
</dl>
|
||||
|
||||
Reference in New Issue
Block a user