M2-09: Speed and distance from the track #52
No reviewers
Labels
No labels
area/agent
area/capture
area/editor
area/geo
area/security
area/sync
area/transcription
area/ui
area/vault
area/voice-memos
blocked
milestone/M1
milestone/M2
milestone/M3
milestone/M4
needs-decision
needs-hardware
p0
p1
p2
type/bug
type/enhancement
type/feature
type/idea
type/infrastructure
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Stash/stash-ios!52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "m2-09-track-figures"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #36.
Four numbers under the route on a memo's detail screen — distance, moving time, average speed and top speed — derived from the
.gpxon every read and never stored.What the filter does, and why
A phone standing still scatters its fixes over tens of metres. Summed point to point that scatter reads as walking, and over forty minutes it is a kilometre of route nobody walked, printed with exactly the confidence of a real one. So:
AGENTS.mdgains a Speed and distance section; the decision measuring a walk from a noisy track is instash-docs.Validated
make lint,make build,make test— 619 tests green.1.1 miat6.5 mphagainst a truth of 1.08 mi at 2.9 m/s; the half-length track showed the coverage sentence; coarse fixes and stripped speeds each showed their own sentence and no numbers.The rule that withholds a top speed below the average came out of the simulator rather than a test — the first fixture's speeds disagreed with its own geometry and the screen printed a contradiction.
Not validated
PLAN.md.StashTestsis logic only and a@Stateassignment inside a SwiftUI body has no seam to reach. Codex raised it and the rejection is recorded inSUMMARY.md.speedAccuracyis not carried in the track file, so a grossly uncertain speed reading can only be outvoted by the reading beside it, not rejected. A follow-up issue is owed; it is a change to what M2-07 writes.Codex
Four passes, artifacts in
.agent/m2-09-track-figures/. Plan: 6 findings, all right. Code review: 6 findings, all right — the worst was minutes of missing speed readings being bridged and counted as covered. Test review: 13 findings, 12 accepted, all boundary gaps. Security: none. Every disposition is inSUMMARY.md.