-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode_setup.html
More file actions
388 lines (364 loc) · 11.4 KB
/
code_setup.html
File metadata and controls
388 lines (364 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code Setup | Team 23586</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700&family=Space+Mono:wght@400;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
/* ══════════════════════════════════════════════════
Team 23586 — Shared Styles
══════════════════════════════════════════════════ */
:root {
--bg: #0a0e17;
--surface: #111827;
--surface-hover: #1a2332;
--surface-code: #0d1117;
--border: #1e293b;
--border-light: #334155;
--text: #e2e8f0;
--text-muted: #94a3b8;
--text-dim: #64748b;
--accent: #06d6a0;
--accent-dim: rgba(6, 214, 160, 0.12);
--accent-glow: rgba(6, 214, 160, 0.25);
--accent-secondary: #38bdf8;
--accent-secondary-dim: rgba(56, 189, 248, 0.1);
--gradient-start: #06d6a0;
--gradient-end: #38bdf8;
--yellow: #fbbf24;
--yellow-dim: rgba(251, 191, 36, 0.12);
--red: #f87171;
--red-dim: rgba(248, 113, 113, 0.12);
--purple: #a78bfa;
--purple-dim: rgba(167, 139, 250, 0.12);
--orange: #fb923c;
--orange-dim: rgba(251, 146, 60, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'DM Sans', sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
line-height: 1.7;
}
/* ── Ambient background ── */
.bg-glow {
position: fixed; top: -200px; right: -200px;
width: 600px; height: 600px;
background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
pointer-events: none; z-index: 0;
animation: drift 20s ease-in-out infinite alternate;
}
.bg-glow-2 {
position: fixed; bottom: -300px; left: -200px;
width: 700px; height: 700px;
background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
pointer-events: none; z-index: 0;
animation: drift 25s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
0% { transform: translate(0, 0); }
100% { transform: translate(-60px, 40px); }
}
@keyframes fadeUp {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
/* ── Layout ── */
.container {
max-width: 860px;
margin: 0 auto;
padding: 0 24px;
position: relative;
z-index: 1;
}
/* ── Nav ── */
nav {
padding: 20px 0;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border);
}
.nav-brand {
font-family: 'Space Mono', monospace;
font-size: 14px;
color: var(--accent);
letter-spacing: 0.5px;
text-decoration: none;
transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.8; }
.nav-links {
display: flex;
gap: 28px;
list-style: none;
}
.nav-links a {
font-size: 14px;
font-weight: 500;
color: var(--text-muted);
text-decoration: none;
transition: color 0.2s;
position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
content: '';
position: absolute;
bottom: -4px; left: 0; right: 0;
height: 2px;
background: var(--accent);
border-radius: 1px;
}
/* ── Page header ── */
.page-header {
padding: 60px 0 40px;
animation: fadeUp 0.5s ease-out both;
}
.page-header h1 {
font-size: clamp(30px, 5vw, 42px);
font-weight: 700;
letter-spacing: -1px;
margin-bottom: 10px;
}
.page-header h1 .gradient {
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.page-header p {
font-size: 16px;
color: var(--text-muted);
line-height: 1.6;
max-width: 620px;
}
/* ── Badges ── */
.badge {
font-family: 'Space Mono', monospace;
font-size: 10px;
letter-spacing: 0.5px;
text-transform: uppercase;
padding: 3px 10px;
border-radius: 4px;
font-weight: 700;
display: inline-block;
vertical-align: middle;
}
.badge.wip { background: var(--yellow-dim); color: var(--yellow); }
.badge.windows { background: var(--accent-secondary-dim); color: var(--accent-secondary); }
.badge.caution { background: var(--orange-dim); color: var(--orange); }
/* ── Content article ── */
.content {
animation: fadeUp 0.5s ease-out 0.15s both;
}
.content h2 {
font-size: 24px;
font-weight: 700;
letter-spacing: -0.5px;
margin: 48px 0 16px;
padding-top: 32px;
border-top: 1px solid var(--border);
}
.content h2:first-child {
margin-top: 0;
padding-top: 0;
border-top: none;
}
.content h3 {
font-size: 18px;
font-weight: 600;
letter-spacing: -0.3px;
margin: 32px 0 12px;
color: var(--text);
}
.content p {
font-size: 15px;
color: var(--text-muted);
line-height: 1.75;
margin-bottom: 16px;
max-width: 680px;
}
.content a {
color: var(--accent);
text-decoration: none;
border-bottom: 1px solid transparent;
transition: border-color 0.2s;
}
.content a:hover { border-bottom-color: var(--accent); }
.content strong { color: var(--text); font-weight: 600; }
.content ul, .content ol {
margin: 12px 0 20px 24px;
color: var(--text-muted);
font-size: 15px;
}
.content li {
margin-bottom: 8px;
line-height: 1.6;
}
.content li strong { color: var(--text); }
/* ── Code blocks ── */
.content pre {
background: var(--surface-code);
border: 1px solid var(--border);
border-radius: 10px;
padding: 20px 24px;
margin: 16px 0 24px;
overflow-x: auto;
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
line-height: 1.7;
color: #c9d1d9;
-webkit-overflow-scrolling: touch;
}
.content code {
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
background: var(--surface);
border: 1px solid var(--border);
padding: 2px 7px;
border-radius: 5px;
color: var(--accent);
}
.content pre code {
background: none;
border: none;
padding: 0;
border-radius: 0;
color: inherit;
font-size: inherit;
}
/* ── Images ── */
.content img {
max-width: 100%;
border-radius: 10px;
border: 1px solid var(--border);
margin: 16px 0 24px;
display: block;
}
.content .img-caption {
font-size: 13px;
color: var(--text-dim);
margin-top: -16px;
margin-bottom: 24px;
font-style: italic;
}
/* ── Callout boxes ── */
.callout {
background: var(--surface);
border: 1px solid var(--border);
border-left: 3px solid var(--accent);
border-radius: 8px;
padding: 16px 20px;
margin: 20px 0 24px;
font-size: 14px;
color: var(--text-muted);
line-height: 1.6;
}
.callout.warning {
border-left-color: var(--yellow);
}
.callout.info {
border-left-color: var(--accent-secondary);
}
.callout strong { color: var(--text); }
/* ── Challenge boxes ── */
.challenges {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 24px 28px;
margin: 32px 0;
}
.challenges h3 {
font-size: 16px;
font-weight: 700;
margin: 0 0 12px;
color: var(--accent);
}
.challenges ul {
margin: 0 0 0 20px;
color: var(--text-muted);
font-size: 14px;
}
.challenges li { margin-bottom: 6px; }
/* ── Footer ── */
footer {
padding: 40px 0;
border-top: 1px solid var(--border);
margin-top: 48px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
}
footer p {
font-size: 13px;
color: var(--text-dim);
}
.footer-links {
display: flex;
gap: 20px;
}
.footer-links a {
font-size: 13px;
color: var(--text-dim);
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
/* ── Mobile ── */
@media (max-width: 600px) {
.page-header { padding: 40px 0 28px; }
nav { flex-direction: column; align-items: flex-start; gap: 16px; }
.content pre { padding: 14px 16px; font-size: 12px; }
footer { flex-direction: column; align-items: flex-start; }
}
</style>
</head>
<body>
<div class="bg-glow"></div>
<div class="bg-glow-2"></div>
<div class="container">
<nav>
<a href="https://potatzz.github.io/23586/" class="nav-brand">23586://resources</a>
<ul class="nav-links">
<li><a href="https://potatzz.github.io/23586/">Home</a></li>
<li><a href="https://potatzz.github.io/23586/table_of_contents.html">Contents</a></li>
</ul>
</nav>
<section class="page-header">
<h1><span class="gradient">Code Setup</span></h1>
<p>How to install and set up Android Studio and Road Runner for properly configuring field centric drive.</p>
</section>
<article class="content">
<h2>Installing Android Studio</h2>
<p>To start, you're going to need to install Android Studio. Go to <a href="https://developer.android.com/studio" target="_blank" rel="noopener">developer.android.com/studio</a> and click the download button.</p>
<img src="https://potatzz.github.io/23586/images/andriod-studio-download-button.png" alt="Android Studio download button">
<p>Accept the terms and agreements at the bottom and download the install file. Once the file is downloaded, click it to open it. Depending on your device, follow the instructions to install Android Studio.</p>
<h2>Downloading and Opening Road Runner</h2>
<p>After installing Android Studio, you need to get the code framework we use called <a href="https://github.com/acmerobotics/road-runner-quickstart/tree/master" target="_blank" rel="noopener">Road Runner</a> by ACME Robotics. To download it, go to the GitHub repo and download the files.</p>
<img src="https://potatzz.github.io/23586/images/road-runner-download.png" alt="Road Runner GitHub download">
<p>Once you've downloaded the .zip file, go into your file manager and unzip the file. Now, open up Android Studio. If you haven't downloaded Android Studio yet, install it now!</p>
<p>When Android Studio launches, press <strong>Open</strong> and find the road-runner folder. If you need to, expand the road-runner folder then click on the file with the green icon next to it.</p>
<img src="https://potatzz.github.io/23586/images/road-runner-open-andriod-studio.png" alt="Road Runner open in Android Studio">
<p>Wait for Android Studio to launch the file. Once it's finished you can find all important code files in:</p>
<pre><code>TeamCode > java > org > firstinspires > ftc > teamcode</code></pre>
<p>You should also create new files in the same folder. It may also look like <code>TeamCode > java > org.firstinspires.ftc.teamcode</code> — each period is just indicating another folder.</p>
<div class="callout info">
<strong>Note on Field Centric Drive:</strong> If you're working on field centric drive, you should take a look at the <a href="https://potatzz.github.io/23586/navx_calibration.html">NavX Calibration</a> page as well as the NavX Setup page.
</div>
</article>
<footer>
<p>© 2026 Team 23586 · Woodside Priory School</p>
<div class="footer-links">
<a href="https://potatzz.github.io/23586/">Home</a>
<a href="https://potatzz.github.io/23586/table_of_contents.html">Contents</a>
<a href="/cdn-cgi/l/email-protection#c4a7b7b0adaab7abaaf6fd84b4b6adabb6bdb4a5aab0aca1b6eaa7aba9">Contact</a>