mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-25 06:51:40 +00:00
Updated IMU
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Mar 06 20:45:08 CST 2023 -->
|
||||
<!-- Generated by javadoc (17) on Wed Mar 08 23:33:54 CST 2023 -->
|
||||
<title>NavXSwerve</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-03-06">
|
||||
<meta name="dc.created" content="2023-03-08">
|
||||
<meta name="description" content="declaration: package: swervelib.imu, class: NavXSwerve">
|
||||
<meta name="generator" content="javadoc/ClassWriterImpl">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
@@ -98,10 +98,10 @@ loadScripts(document, 'script');</script>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">NavX IMU.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>private double</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#yawOffset" class="member-name-link">yawOffset</a></code></div>
|
||||
<div class="col-first odd-row-color"><code>private edu.wpi.first.math.geometry.Rotation3d</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#offset" class="member-name-link">offset</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Offset for the NavX yaw reading.</div>
|
||||
<div class="block">Offset for the NavX.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -153,19 +153,19 @@ loadScripts(document, 'script');</script>
|
||||
<div class="block">Get the instantiated IMU object.</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.geometry.Rotation3d</code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getRotation3d()" class="member-name-link">getRotation3d</a>()</code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getRawRotation3d()" class="member-name-link">getRawRotation3d</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Fetch the <code>Rotation3d</code> from the IMU without any zeroing.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>edu.wpi.first.math.geometry.Rotation3d</code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getRotation3d()" class="member-name-link">getRotation3d</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Fetch the <code>Rotation3d</code> from the IMU.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getYawPitchRoll(double%5B%5D)" class="member-name-link">getYawPitchRoll</a><wbr>(double[] yprArray)</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Fetch the yaw/pitch/roll from the IMU.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setYaw(double)" class="member-name-link">setYaw</a><wbr>(double yaw)</code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setOffset(edu.wpi.first.math.geometry.Rotation3d)" class="member-name-link">setOffset</a><wbr>(edu.wpi.first.math.geometry.Rotation3d offset)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Set the yaw in degrees.</div>
|
||||
<div class="block">Set the gyro offset.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -192,10 +192,10 @@ loadScripts(document, 'script');</script>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="yawOffset">
|
||||
<h3>yawOffset</h3>
|
||||
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">double</span> <span class="element-name">yawOffset</span></div>
|
||||
<div class="block">Offset for the NavX yaw reading.</div>
|
||||
<section class="detail" id="offset">
|
||||
<h3>offset</h3>
|
||||
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">edu.wpi.first.math.geometry.Rotation3d</span> <span class="element-name">offset</span></div>
|
||||
<div class="block">Offset for the NavX.</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -248,28 +248,28 @@ loadScripts(document, 'script');</script>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="setYaw(double)">
|
||||
<h3>setYaw</h3>
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">setYaw</span><wbr><span class="parameters">(double yaw)</span></div>
|
||||
<div class="block">Set the yaw in degrees.</div>
|
||||
<section class="detail" id="setOffset(edu.wpi.first.math.geometry.Rotation3d)">
|
||||
<h3>setOffset</h3>
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">setOffset</span><wbr><span class="parameters">(edu.wpi.first.math.geometry.Rotation3d offset)</span></div>
|
||||
<div class="block">Set the gyro offset.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="SwerveIMU.html#setYaw(double)">setYaw</a></code> in class <code><a href="SwerveIMU.html" title="class in swervelib.imu">SwerveIMU</a></code></dd>
|
||||
<dd><code><a href="SwerveIMU.html#setOffset(edu.wpi.first.math.geometry.Rotation3d)">setOffset</a></code> in class <code><a href="SwerveIMU.html" title="class in swervelib.imu">SwerveIMU</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>yaw</code> - Yaw angle in degrees.</dd>
|
||||
<dd><code>offset</code> - gyro offset as a <code>Rotation3d</code>.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="getYawPitchRoll(double[])">
|
||||
<h3>getYawPitchRoll</h3>
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">getYawPitchRoll</span><wbr><span class="parameters">(double[] yprArray)</span></div>
|
||||
<div class="block">Fetch the yaw/pitch/roll from the IMU.</div>
|
||||
<section class="detail" id="getRawRotation3d()">
|
||||
<h3>getRawRotation3d</h3>
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">edu.wpi.first.math.geometry.Rotation3d</span> <span class="element-name">getRawRotation3d</span>()</div>
|
||||
<div class="block">Fetch the <code>Rotation3d</code> from the IMU without any zeroing. Robot relative.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="SwerveIMU.html#getYawPitchRoll(double%5B%5D)">getYawPitchRoll</a></code> in class <code><a href="SwerveIMU.html" title="class in swervelib.imu">SwerveIMU</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>yprArray</code> - Array which will be filled with {yaw, pitch, roll} in degrees.</dd>
|
||||
<dd><code><a href="SwerveIMU.html#getRawRotation3d()">getRawRotation3d</a></code> in class <code><a href="SwerveIMU.html" title="class in swervelib.imu">SwerveIMU</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd><code>Rotation3d</code> from the IMU.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user