Commit 3d15415
Add courses (#13)
* Add Courses feature with Distance Course support
- New /courses page in left nav (below Wind, not in mobile bottom nav)
- Courses page has a dropdown to select a single course (or none)
- Selected course is persisted in localStorage and saved/restored with presets
- Course elements rendered on map: buoys (concentric circles), lines, distance markers
- DistanceCourse abstraction: makeDistanceCourse(id, name, lat, lng, direction)
builds entry/exit gates, yellow course lines, and distance markers
- First course: Skydive City Distance (p=28.2187921,-82.1515655, d=200°)
- POM and hover highlight circles resized to match buoy diameter
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add target positioning relative to course in Courses panel
- Course type gains optional center (LatLng) and direction (degrees) fields
- makeDistanceCourse populates these from its parameters
- New getTargetRelativeToCourse / fromCourseRelative geometry helpers in courses.ts
- Courses panel shows a Target section when a course is selected:
- Depth (m): distance along d+180 axis from course center, positive = away from course
- Offset (m): lateral distance, positive = right of course direction
- Approach Angle (°): finalHeading relative to course direction (courseDir - finalHeading);
step 0.5°, rotating the flight path around the fixed landing point
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add Zone Accuracy course type and Skydive City ZA course
- Add makeZACourse() with G1-G4 water gates, Z1-Z10 landing zones,
and centre zone with transverse 46/48/50/48/46 scoring
- Add 'Skydive City: Zone Accuracy' course to COURSES
- Render course markers as centered label boxes (no circle dot)
- Use marker.color for label text (supports red centre-zone '50')
- Gate score labels placed on gate cross-lines; zone names outside rail
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Hide course labels at low zoom levels, fix zone widths
- Track map zoom via onZoomChanged; hide course markers (score/name labels) below zoom 20
- Fix ZA course zone widths to match diagram
- Remove z1Offset parameter from makeZACourse (hardcoded to 8m)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add custom courses with localStorage persistence and map edit handles
- Custom courses stored in localStorage as CourseParams (type, lat, lng, direction)
- Course selector groups custom courses above built-in, both with duplicate button
- New button creates a course at current target location
- Target section (depth/offset/approach angle) now shown for all courses
- Edit accordion (collapsed by default) exposes name/type/lat/lng/direction/delete
- When Edit is expanded: cyan drag handle moves course center, orange rotation
handle (15m out) updates bearing live; both update the course immediately
- App resolves enabled courses from both custom and built-in pools
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add Speed course type with arc rails and inside gate labels
- New CourseType 'speed' with carveDirection (left/right)
- Five 10m-wide gates on a 53.48m radius circle around focal point
- Arc rails approximated with 8 segments per section instead of straight chords
- Gate labels (G1-G5) placed 3m inside the channel toward focal point
- Inside buoys orange, outside white
- CoursesComponent: Speed option in type selector with Carve Direction field
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add Skydive City: Speed built-in course
Derived from focal point and G4 GPS coordinates:
- p = G1 center (28.2187600, -82.1514781)
- direction = 235°, left carve
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add more courses.
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f026550 commit 3d15415
File tree
12 files changed
+1251
-13
lines changed- scripts
- src
- components
- constants
- hooks
- types
- util
12 files changed
+1251
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
47 | | - | |
| 51 | + | |
48 | 52 | | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
73 | 83 | | |
74 | 84 | | |
75 | 85 | | |
| |||
154 | 164 | | |
155 | 165 | | |
156 | 166 | | |
157 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
158 | 170 | | |
159 | 171 | | |
160 | 172 | | |
| 173 | + | |
161 | 174 | | |
162 | 175 | | |
163 | 176 | | |
| |||
197 | 210 | | |
198 | 211 | | |
199 | 212 | | |
| 213 | + | |
200 | 214 | | |
201 | 215 | | |
202 | | - | |
| 216 | + | |
| 217 | + | |
203 | 218 | | |
204 | 219 | | |
205 | 220 | | |
| |||
294 | 309 | | |
295 | 310 | | |
296 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
297 | 323 | | |
298 | 324 | | |
299 | 325 | | |
| |||
318 | 344 | | |
319 | 345 | | |
320 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
321 | 363 | | |
322 | 364 | | |
323 | 365 | | |
| |||
328 | 370 | | |
329 | 371 | | |
330 | 372 | | |
| 373 | + | |
| 374 | + | |
331 | 375 | | |
332 | 376 | | |
333 | 377 | | |
| |||
0 commit comments