No description
Implements comprehensive crowd flow visualization for the Spaxel WiFi CSI-based indoor positioning system. The feature tracks movement patterns over time and renders them as directional flow maps and dwell hotspot heatmaps. Key components: - FlowAccumulator: Subscribes to TrackManager updates (10 Hz) and accumulates trajectory data with 0.2m sampling threshold - SQLite tables: trajectory_segments, dwell_accumulator, detected_corridors - Flow map computation: Bresenham's line algorithm for grid traversal, 5-minute cache, time/person filtering - Dwell heatmap: Stationary detection (< 0.1 m/s), normalized 0-1 - Corridor detection: Circular variance analysis, connected components - 3D visualization: Animated arrows (flow), heatmap patches (dwell), raised platforms (corridors) - REST API: /api/analytics/flow, /api/analytics/dwell, /api/analytics/corridors - Dashboard controls: Time/person filters, layer toggles, auto-refresh Background tasks: - Daily pruning of trajectory segments older than 90 days - Weekly corridor detection and recomputation Load shedding integration: - Suspends crowd flow accumulation at Level 1 (≥80ms iteration time) - Respects ShouldAccumulateCrowdFlow() flag from loadshed package Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .beads | ||
| .github/workflows | ||
| .marathon | ||
| dashboard | ||
| docs | ||
| firmware | ||
| mothership | ||
| tests/e2e | ||
| .dockerignore | ||
| .gitignore | ||
| .needle-predispatch-sha | ||
| .needle.yaml | ||
| API_IMPLEMENTATION_STATUS.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| fix_ble_handlers.py | ||
| PROGRESS.md | ||
| VERSION | ||