Skip to content

Commit af026f5

Browse files
Added some content to Odo Testin, SQUARE ROOTS ARE PAINFUL
1 parent abe4bb3 commit af026f5

File tree

5 files changed

+109
-437
lines changed

5 files changed

+109
-437
lines changed

book/odometry/OdometryTesting.html

+51-9
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
<link rel="stylesheet" href="../highlight.css">
2828
<link rel="stylesheet" href="../tomorrow-night.css">
2929
<link rel="stylesheet" href="../ayu-highlight.css">
30-
<link rel="stylesheet" href="../solvers-light-highlight.css">
31-
<link rel="stylesheet" href="../solvers-dark-highlight.css">
3230

3331
<!-- Custom theme stylesheets -->
3432

@@ -134,8 +132,6 @@
134132
<i class="fa fa-paint-brush"></i>
135133
</button>
136134
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
137-
<li role="none"><button role="menuitem" class="theme" id="solvers-light">Solvers Light</button></li>
138-
<li role="none"><button role="menuitem" class="theme" id="solvers-dark">Solvers Dark</button></li>
139135
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
140136
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
141137
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
@@ -285,7 +281,7 @@ <h3 id="software"><a class="header" href="#software">Software:</a></h3>
285281
<li>
286282
<p><a href="./StraightTest.html">Straight Test</a>:</p>
287283
<ul>
288-
<li>Moving in every 30° direction from 0° to 330° back and forth a distance of 2 Tiles (48 inches) in a straight line</li>
284+
<li>Moves in every 30° direction from 0° to 330° back and forth a distance of 2 Tiles (48 inches) in a straight line</li>
289285
<li>At the end, the change in position for each odometry wheel is returned</li>
290286
<li>There is no turning</li>
291287
<li>This will all be executed with <code>.strafeTo(new Vector2d(x, y))</code>, not <code>.lineToX(x)</code> or <code>.lineToY(y)</code></li>
@@ -301,8 +297,8 @@ <h3 id="software"><a class="header" href="#software">Software:</a></h3>
301297
<li>
302298
<p><a href="./SplineTest.html">Spline Test:</a></p>
303299
<ul>
304-
<li>A large variety of splines, turns, and turning while strafing in complex paths</li>
305-
<li>At the end, the change in position for each odometry wheel is returned</li>
300+
<li>Repeats a cycle of various splines, turns, and turning while strafing 3 times</li>
301+
<li>At the end of each cycle, the change in position for each odometry wheel is returned</li>
306302
</ul>
307303
<br>
308304
<div class="video-container-1">
@@ -313,10 +309,11 @@ <h3 id="software"><a class="header" href="#software">Software:</a></h3>
313309
<br>
314310
</li>
315311
<li>
316-
<p><a href="./CombinedTest.html"> Combined Test:</a></p>
312+
<p><a href="./CombinedTest.html">Combined Test:</a></p>
317313
<ul>
318314
<li>A combination of <a href="./SplineTest.html">Spline Test</a> and <a href="./StraightTest.html">Straight Test</a></li>
319-
<li>At the end, the change in position for each odometry wheel is returned</li>
315+
<li>Repeats a cycle of various splines, turns, and strafes 3 times</li>
316+
<li>At the end of each cycle, the change in position for each odometry wheel is returned</li>
320317
</ul>
321318
<br>
322319
<div class="video-container-1">
@@ -351,6 +348,51 @@ <h3 id="software"><a class="header" href="#software">Software:</a></h3>
351348
}
352349
}
353350
</style>
351+
<hr />
352+
<h3 id="analysis"><a class="header" href="#analysis">Analysis</a></h3>
353+
<p>        Each test program above (<a href="./StraightTest.html">Straight Test</a>, <a href="./SplineTest.html">Spline Test</a>, and <a href="./CombinedTest.html">Combined Test</a>) returns two results at the end of the program - the pose of the robot after each cycle, and a graph that has data plotted after each trajectory is complete.</p>
354+
<p>        The graph will be made in <a href="https://acmerobotics.github.io/ftc-dashboard/">FTC Dashboard</a>. The y-axis will represent the current error after each trajectory has been completed via this formula:</p>
355+
<math xmlns="http://www.w3.org/1998/Math/MathML">
356+
<msqrt>
357+
<mrow>
358+
<msup>
359+
<mrow>
360+
<mo>(</mo>
361+
<msub>
362+
<mi>x</mi>
363+
<mtext>localizer</mtext>
364+
</msub>
365+
<mo>-</mo>
366+
<msub>
367+
<mi>x</mi>
368+
<mtext>target</mtext>
369+
</msub>
370+
<mo>)</mo>
371+
</mrow>
372+
<mn>2</mn>
373+
</msup>
374+
<mo>+</mo>
375+
<msup>
376+
<mrow>
377+
<mo>(</mo>
378+
<msub>
379+
<mi>y</mi>
380+
<mtext>localizer</mtext>
381+
</msub>
382+
<mo>-</mo>
383+
<msub>
384+
<mi>y</mi>
385+
<mtext>target</mtext>
386+
</msub>
387+
<mo>)</mo>
388+
</mrow>
389+
<mn>2</mn>
390+
</msup>
391+
</mrow>
392+
</msqrt>
393+
</math>
394+
<p>And the x-axis will represent distance travelled linearly. In other words, after each trajectory, a point is plotting representing the error of the robot based off distance traveled.</p>
395+
354396
</main>
355397

356398
<nav class="nav-wrapper" aria-label="Page navigation">

book/searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

book/searchindex.json

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)