|
| 1 | +<!DOCTYPE HTML> |
| 2 | +<html lang="en" class="light" dir="ltr"> |
| 3 | + <head> |
| 4 | + <!-- Book generated using mdBook --> |
| 5 | + <meta charset="UTF-8"> |
| 6 | + <title>Combined Test - Seattle Solvers Docs</title> |
| 7 | + |
| 8 | + |
| 9 | + <!-- Custom HTML head --> |
| 10 | + |
| 11 | + <meta name="description" content=""> |
| 12 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 13 | + <meta name="theme-color" content="#ffffff"> |
| 14 | + |
| 15 | + <link rel="icon" href="../favicon.svg"> |
| 16 | + <link rel="shortcut icon" href="../favicon.png"> |
| 17 | + <link rel="stylesheet" href="../css/variables.css"> |
| 18 | + <link rel="stylesheet" href="../css/general.css"> |
| 19 | + <link rel="stylesheet" href="../css/chrome.css"> |
| 20 | + <link rel="stylesheet" href="../css/print.css" media="print"> |
| 21 | + |
| 22 | + <!-- Fonts --> |
| 23 | + <link rel="stylesheet" href="../FontAwesome/css/font-awesome.css"> |
| 24 | + <link rel="stylesheet" href="../fonts/fonts.css"> |
| 25 | + |
| 26 | + <!-- Highlight.js Stylesheets --> |
| 27 | + <link rel="stylesheet" href="../highlight.css"> |
| 28 | + <link rel="stylesheet" href="../tomorrow-night.css"> |
| 29 | + <link rel="stylesheet" href="../ayu-highlight.css"> |
| 30 | + <link rel="stylesheet" href="../solvers-light-highlight.css"> |
| 31 | + |
| 32 | + <!-- Custom theme stylesheets --> |
| 33 | + |
| 34 | + <!-- MathJax --> |
| 35 | + <script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> |
| 36 | + </head> |
| 37 | + <body class="sidebar-visible no-js"> |
| 38 | + <div id="body-container"> |
| 39 | + <!-- Provide site root to javascript --> |
| 40 | + <script> |
| 41 | + var path_to_root = "../"; |
| 42 | + var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "light"; |
| 43 | + </script> |
| 44 | + |
| 45 | + <!-- Work around some values being stored in localStorage wrapped in quotes --> |
| 46 | + <script> |
| 47 | + try { |
| 48 | + var theme = localStorage.getItem('mdbook-theme'); |
| 49 | + var sidebar = localStorage.getItem('mdbook-sidebar'); |
| 50 | + |
| 51 | + if (theme.startsWith('"') && theme.endsWith('"')) { |
| 52 | + localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); |
| 53 | + } |
| 54 | + |
| 55 | + if (sidebar.startsWith('"') && sidebar.endsWith('"')) { |
| 56 | + localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1)); |
| 57 | + } |
| 58 | + } catch (e) { } |
| 59 | + </script> |
| 60 | + |
| 61 | + <!-- Set the theme before any content is loaded, prevents flash --> |
| 62 | + <script> |
| 63 | + var theme; |
| 64 | + try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } |
| 65 | + if (theme === null || theme === undefined) { theme = default_theme; } |
| 66 | + var html = document.querySelector('html'); |
| 67 | + html.classList.remove('light') |
| 68 | + html.classList.add(theme); |
| 69 | + var body = document.querySelector('body'); |
| 70 | + body.classList.remove('no-js') |
| 71 | + body.classList.add('js'); |
| 72 | + </script> |
| 73 | + |
| 74 | + <input type="checkbox" id="sidebar-toggle-anchor" class="hidden"> |
| 75 | + |
| 76 | + <!-- Hide / unhide sidebar before it is displayed --> |
| 77 | + <script> |
| 78 | + var body = document.querySelector('body'); |
| 79 | + var sidebar = null; |
| 80 | + var sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); |
| 81 | + if (document.body.clientWidth >= 1080) { |
| 82 | + try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { } |
| 83 | + sidebar = sidebar || 'visible'; |
| 84 | + } else { |
| 85 | + sidebar = 'hidden'; |
| 86 | + } |
| 87 | + sidebar_toggle.checked = sidebar === 'visible'; |
| 88 | + body.classList.remove('sidebar-visible'); |
| 89 | + body.classList.add("sidebar-" + sidebar); |
| 90 | + </script> |
| 91 | + |
| 92 | + <nav id="sidebar" class="sidebar" aria-label="Table of contents"> |
| 93 | + <div class="sidebar-scrollbox"> |
| 94 | + <ol class="chapter"><li class="chapter-item expanded affix "><a href="../introduction.html">Introduction</a></li><li class="chapter-item expanded affix "><li class="spacer"></li><li class="chapter-item expanded affix "><li class="part-title">Odometry</li><li class="chapter-item expanded "><a href="../odometry/OdometryTesting.html"><strong aria-hidden="true">1.</strong> Odometry Testing</a></li><li class="chapter-item expanded "><a href="../odometry/StraightTest.html"><strong aria-hidden="true">2.</strong> Straight Test</a></li><li class="chapter-item expanded "><a href="../odometry/SplineTest.html"><strong aria-hidden="true">3.</strong> Spline Test</a></li><li class="chapter-item expanded "><a href="../odometry/CombinedTest.html" class="active"><strong aria-hidden="true">4.</strong> Combined Test</a></li><li class="chapter-item expanded affix "><li class="spacer"></li><li class="chapter-item expanded affix "><a href="../contributors.html">Contributors</a></li></ol> |
| 95 | + </div> |
| 96 | + <div id="sidebar-resize-handle" class="sidebar-resize-handle"> |
| 97 | + <div class="sidebar-resize-indicator"></div> |
| 98 | + </div> |
| 99 | + </nav> |
| 100 | + |
| 101 | + <!-- Track and set sidebar scroll position --> |
| 102 | + <script> |
| 103 | + var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox'); |
| 104 | + sidebarScrollbox.addEventListener('click', function(e) { |
| 105 | + if (e.target.tagName === 'A') { |
| 106 | + sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop); |
| 107 | + } |
| 108 | + }, { passive: true }); |
| 109 | + var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll'); |
| 110 | + sessionStorage.removeItem('sidebar-scroll'); |
| 111 | + if (sidebarScrollTop) { |
| 112 | + // preserve sidebar scroll position when navigating via links within sidebar |
| 113 | + sidebarScrollbox.scrollTop = sidebarScrollTop; |
| 114 | + } else { |
| 115 | + // scroll sidebar to current active section when navigating via "next/previous chapter" buttons |
| 116 | + var activeSection = document.querySelector('#sidebar .active'); |
| 117 | + if (activeSection) { |
| 118 | + activeSection.scrollIntoView({ block: 'center' }); |
| 119 | + } |
| 120 | + } |
| 121 | + </script> |
| 122 | + |
| 123 | + <div id="page-wrapper" class="page-wrapper"> |
| 124 | + |
| 125 | + <div class="page"> |
| 126 | + <div id="menu-bar-hover-placeholder"></div> |
| 127 | + <div id="menu-bar" class="menu-bar sticky"> |
| 128 | + <div class="left-buttons"> |
| 129 | + <label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar"> |
| 130 | + <i class="fa fa-bars"></i> |
| 131 | + </label> |
| 132 | + <button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list"> |
| 133 | + <i class="fa fa-paint-brush"></i> |
| 134 | + </button> |
| 135 | + <ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu"> |
| 136 | + <li role="none"><button role="menuitem" class="theme" id="solvers-light">Solvers Light</button></li> |
| 137 | + <li role="none"><button role="menuitem" class="theme" id="light">Light</button></li> |
| 138 | + <li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li> |
| 139 | + <li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li> |
| 140 | + <li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li> |
| 141 | + <li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li> |
| 142 | + </ul> |
| 143 | + <button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar"> |
| 144 | + <i class="fa fa-search"></i> |
| 145 | + </button> |
| 146 | + </div> |
| 147 | + |
| 148 | + <h1 class="menu-title">Seattle Solvers Docs</h1> |
| 149 | + |
| 150 | + <div class="right-buttons"> |
| 151 | + <a href="../print.html" title="Print this book" aria-label="Print this book"> |
| 152 | + <i id="print-button" class="fa fa-print"></i> |
| 153 | + </a> |
| 154 | + <a href="https://github.com/FTC-23511/docs/tree/master" title="Git repository" aria-label="Git repository"> |
| 155 | + <i id="git-repository-button" class="fa fa-github"></i> |
| 156 | + </a> |
| 157 | + <a href="https://github.com/FTC-23511/docs/tree/master/src/odometry/CombinedTest.md" title="Suggest an edit" aria-label="Suggest an edit"> |
| 158 | + <i id="git-edit-button" class="fa fa-edit"></i> |
| 159 | + </a> |
| 160 | + |
| 161 | + </div> |
| 162 | + </div> |
| 163 | + |
| 164 | + <div id="search-wrapper" class="hidden"> |
| 165 | + <form id="searchbar-outer" class="searchbar-outer"> |
| 166 | + <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header"> |
| 167 | + </form> |
| 168 | + <div id="searchresults-outer" class="searchresults-outer hidden"> |
| 169 | + <div id="searchresults-header" class="searchresults-header"></div> |
| 170 | + <ul id="searchresults"> |
| 171 | + </ul> |
| 172 | + </div> |
| 173 | + </div> |
| 174 | + |
| 175 | + <!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM --> |
| 176 | + <script> |
| 177 | + document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible'); |
| 178 | + document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible'); |
| 179 | + Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) { |
| 180 | + link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1); |
| 181 | + }); |
| 182 | + </script> |
| 183 | + |
| 184 | + <div id="content" class="content"> |
| 185 | + <main> |
| 186 | + <h1 id="combined-test"><a class="header" href="#combined-test">Combined Test</a></h1> |
| 187 | +<pre><code class="language-java"><span class="boring">// Combined Test |
| 188 | +</span>.strafeToSplineHeading(new Vector2d(-48, -48), Math.toRadians(0)) |
| 189 | + |
| 190 | +.strafeTo(new Vector2d(-24, 24 * Math.sqrt(3))) |
| 191 | +.setTangent(0) |
| 192 | + |
| 193 | +.splineToSplineHeading(new Pose2d(48, 48, Math.toRadians(90)), Math.PI / 2) |
| 194 | + |
| 195 | +.strafeToSplineHeading(new Vector2d(-48, 48), Math.toRadians(270)) |
| 196 | + |
| 197 | +.turnTo(Math.toRadians(315)) |
| 198 | + |
| 199 | +.splineTo(new Vector2d(-48, 12), Math.PI / 6) |
| 200 | + |
| 201 | +.splineToSplineHeading(new Pose2d(48, -6, Math.toRadians(215)), Math.PI / 3) |
| 202 | + |
| 203 | +.setReversed(true) |
| 204 | + |
| 205 | +.splineToSplineHeading(new Pose2d(6, -48, Math.toRadians(215)), Math.PI / 4) |
| 206 | +.splineTo(new Vector2d(36, -18), Math.PI / 2) |
| 207 | + |
| 208 | +.strafeToLinearHeading(new Vector2d(24, 24), Math.toRadians(0)) |
| 209 | + |
| 210 | +.turnTo(Math.toRadians(45)) |
| 211 | +.lineToX(0) |
| 212 | +.turn(Math.toRadians(-45)) |
| 213 | + |
| 214 | +.strafeToSplineHeading(new Vector2d(-48, -48), Math.toRadians(0)) |
| 215 | + |
| 216 | +.strafeTo(new Vector2d(-24, 24 * Math.sqrt(3))) |
| 217 | +.setTangent(0) |
| 218 | + |
| 219 | +.splineToSplineHeading(new Pose2d(48, 48, Math.toRadians(90)), Math.PI / 2) |
| 220 | + |
| 221 | +.strafeToSplineHeading(new Vector2d(-48, 48), Math.toRadians(270)) |
| 222 | + |
| 223 | +.turnTo(Math.toRadians(315)) |
| 224 | + |
| 225 | +.splineTo(new Vector2d(-48, 12), Math.PI / 6) |
| 226 | + |
| 227 | +.splineToSplineHeading(new Pose2d(48, -6, Math.toRadians(215)), Math.PI / 3) |
| 228 | + |
| 229 | +.setReversed(true) |
| 230 | + |
| 231 | +.splineToSplineHeading(new Pose2d(6, -48, Math.toRadians(215)), Math.PI / 4) |
| 232 | +.splineTo(new Vector2d(36, -18), Math.PI / 2) |
| 233 | + |
| 234 | +.strafeToLinearHeading(new Vector2d(24, 24), Math.toRadians(0)) |
| 235 | + |
| 236 | +.turnTo(Math.toRadians(45)) |
| 237 | +.lineToX(0) |
| 238 | +.turn(Math.toRadians(-45)) |
| 239 | + |
| 240 | +.strafeToSplineHeading(new Vector2d(-48, -48), Math.toRadians(0)) |
| 241 | + |
| 242 | +.strafeTo(new Vector2d(-24, 24 * Math.sqrt(3))) |
| 243 | +.setTangent(0) |
| 244 | + |
| 245 | +.splineToSplineHeading(new Pose2d(48, 48, Math.toRadians(90)), Math.PI / 2) |
| 246 | + |
| 247 | +.strafeToSplineHeading(new Vector2d(-48, 48), Math.toRadians(270)) |
| 248 | + |
| 249 | +.turnTo(Math.toRadians(315)) |
| 250 | + |
| 251 | +.splineTo(new Vector2d(-48, 12), Math.PI / 6) |
| 252 | + |
| 253 | +.splineToSplineHeading(new Pose2d(48, -6, Math.toRadians(215)), Math.PI / 3) |
| 254 | + |
| 255 | +.setReversed(true) |
| 256 | + |
| 257 | +.splineToSplineHeading(new Pose2d(6, -48, Math.toRadians(215)), Math.PI / 4) |
| 258 | +.splineTo(new Vector2d(36, -18), Math.PI / 2) |
| 259 | + |
| 260 | +.strafeToLinearHeading(new Vector2d(24, 24), Math.toRadians(0)) |
| 261 | + |
| 262 | +.turnTo(Math.toRadians(45)) |
| 263 | +.lineToX(0) |
| 264 | +.turn(Math.toRadians(-45)) |
| 265 | +</code></pre> |
| 266 | + |
| 267 | + </main> |
| 268 | + |
| 269 | + <nav class="nav-wrapper" aria-label="Page navigation"> |
| 270 | + <!-- Mobile navigation buttons --> |
| 271 | + <a rel="prev" href="../odometry/SplineTest.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> |
| 272 | + <i class="fa fa-angle-left"></i> |
| 273 | + </a> |
| 274 | + |
| 275 | + <a rel="next prefetch" href="../contributors.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> |
| 276 | + <i class="fa fa-angle-right"></i> |
| 277 | + </a> |
| 278 | + |
| 279 | + <div style="clear: both"></div> |
| 280 | + </nav> |
| 281 | + </div> |
| 282 | + </div> |
| 283 | + |
| 284 | + <nav class="nav-wide-wrapper" aria-label="Page navigation"> |
| 285 | + <a rel="prev" href="../odometry/SplineTest.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> |
| 286 | + <i class="fa fa-angle-left"></i> |
| 287 | + </a> |
| 288 | + |
| 289 | + <a rel="next prefetch" href="../contributors.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> |
| 290 | + <i class="fa fa-angle-right"></i> |
| 291 | + </a> |
| 292 | + </nav> |
| 293 | + |
| 294 | + </div> |
| 295 | + |
| 296 | + <!-- Livereload script (if served using the cli tool) --> |
| 297 | + <script> |
| 298 | + const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:'; |
| 299 | + const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload"; |
| 300 | + const socket = new WebSocket(wsAddress); |
| 301 | + socket.onmessage = function (event) { |
| 302 | + if (event.data === "reload") { |
| 303 | + socket.close(); |
| 304 | + location.reload(); |
| 305 | + } |
| 306 | + }; |
| 307 | + |
| 308 | + window.onbeforeunload = function() { |
| 309 | + socket.close(); |
| 310 | + } |
| 311 | + </script> |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + <script> |
| 316 | + window.playground_copyable = true; |
| 317 | + </script> |
| 318 | + |
| 319 | + |
| 320 | + <script src="../elasticlunr.min.js"></script> |
| 321 | + <script src="../mark.min.js"></script> |
| 322 | + <script src="../searcher.js"></script> |
| 323 | + |
| 324 | + <script src="../clipboard.min.js"></script> |
| 325 | + <script src="../highlight.js"></script> |
| 326 | + <script src="../book.js"></script> |
| 327 | + |
| 328 | + <!-- Custom JS scripts --> |
| 329 | + |
| 330 | + |
| 331 | + </div> |
| 332 | + </body> |
| 333 | +</html> |
0 commit comments