From 3f3e6ed586e580539ce42289a3f97536fe994c7b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 26 May 2026 09:29:30 +0000 Subject: Update worklog: remove stale instrument sheet plan, fix tack constants https://claude.ai/code/session_01KXYBuAHZkvv63DeUG6XaZD --- .agent/worklog.md | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/.agent/worklog.md b/.agent/worklog.md index 6187ae5..f322f67 100644 --- a/.agent/worklog.md +++ b/.agent/worklog.md @@ -10,32 +10,6 @@ --- -## Paused Task: Instrument Sheet Visual Redesign - -**Started:** 2026-04-06 · **Status:** Tasks 1–2 done; Tasks 3–7 pending - -### What's being built -Full visual redesign of the instrument bottom sheet: -- `WaveView`: animated canvas divider (swell + wind waves + whitecaps), sky-blue above / ocean-blue below -- `DirectionArrowView`: 14dp inline chevron in two palettes (SKY grey / OCEAN blue) -- Direction arrows inline with all numeric values -- `°` baked into HDG/COG (no separate unit label) -- Forecast cells: value line 1, [arrow] bearing line 2 (swell adds period) -- Imperial units throughout (ft for depth, wave height, swell) -- Forecast labels: "Current" / "Waves" (no section header) -- Reports section removed; touch-through prevented - -### Progress -- [x] Task 1: Remove report buttons, fix touch-through — commit `2d86c0b` -- [x] Task 2: Update typography styles — commit `e79b678` -- [ ] Task 3: Create `DirectionArrowView.kt` -- [ ] Task 4: Create `WaveView.kt` -- [ ] Task 5: Restructure `layout_instruments_sheet.xml` -- [ ] Task 6: Refactor `InstrumentHandler.kt` -- [ ] Task 7: Wire new views in `MainActivity.kt`, fix units - ---- - ## Recently Completed ### Tack Detection Redesign — 2026-05-26 @@ -56,7 +30,7 @@ Full rewrite of `TackDetector.kt` (both `android-app` and `test-runner` mirrors) - De-duplication uses adjacent-candidate comparison (not group-start), so a long raw-candidate stream from one maneuver stays as one group even if it spans > MIN_GAP_MS - Position pin refined to max instantaneous heading rate within the maneuver zone -**Key constants:** `T_SETTLE=30s, T_MANEUVER=30s, STAB_MAX=20°, MIN_DELTA=60°, MAX_DELTA=160°, MIN_GAP_MS=60s, START_SKIP_MS=60s` +**Key constants:** `T_SETTLE=30s, T_MANEUVER=30s, STAB_MAX=20°, MIN_DELTA=75°, no MAX_DELTA, MIN_GAP_MS=60s, START_SKIP_MS=60s` **Tests:** 16/16 passing at 1 Hz (FULL mode). Covers: straight course, port↔stbd tack, jibe, 0/360 wrap, below/above delta limits, noisy anchor (rejected), unstable before-window (rejected), gradual course change (rejected), two tacks with sufficient gap, two tacks within MIN_GAP_MS (deduplicated), cold-start suppression, too few points. @@ -76,5 +50,5 @@ Full rewrite of `TackDetector.kt` (both `android-app` and `test-runner` mirrors) ## Infrastructure - **`test-runner/`** — standalone Kotlin/JVM Gradle project for logic tests without Android SDK. Run: `cd test-runner && ./gradlew test` -- **Branch policy** — all work merges to `main`. Current feature branch: `claude/optimize-nav-location-tracking-Vac5Z` +- **Branch policy** — all work merges to `main`. - **Build note** — `./gradlew assembleDebug` requires network access to Google plugin repo (unavailable in cloud sandbox). Use `test-runner` for logic tests; build verification requires a local dev environment. -- cgit v1.2.3