Group 8 Assignment 2 - Indoor positioning with particle filter fusion, map matching, and auto-floor detection#127
Open
JamesJiang1008 wants to merge 6 commits intoopenpositioning:developfrom
Open
Conversation
Working state with: - Particle filter (500 particles, SIR, easting/northing coords) - KNN WiFi positioning (290 fingerprints, GF/F1/F2) - Map matching (wall + room + building outline) - Auto-floor (WiFi anchor + barometric delta + transition zone) - Data display (obs dots, source label, smooth animation) - Heading: game rotation vector + one-time mag offset, no LPF - PDR: Weiberg K=0.28, stair step scaling - Floor order fix, debounce 2s, KNN collection UI in SET page
Added on top of 4c4c1ee: - Sticky building detection (25m radius keeps indoor map active) - KNN calibration phase (9s, 3 samples average) with countdown UI - Trajectory only draws after calibration completes - Camera follow pause on map drag (5s resume) - Removed all external project references from comments
- KNN fingerprints: 443 points across Nucleus (BF/GF/F1/F2/F3) + Library (F1/F2/F3) - Calibration: 9s multi-sample averaging, GNSS reliability check (<15m = outdoor) - Trajectory only draws after calibration (no pre-calibration fly line) - Sticky building detection (25m radius) - Nucleus <-> Library building switch - Transition zone radius: 5m - Asymmetric floor dead zone: -2.1m to +2.6m - WiFi scan interval: 1.5s - Camera follow pause on drag (5s resume) - Obs dots label: PDR/WiFi/GPS - Removed all external project references
- STEP_COUNTER as fallback for slow walking (800ms threshold) - 300ms debounce to prevent double-counting - Null protection for sensor registration (prevents crash) - Particle cloud visualization (80 sampled, 1s refresh, toggle switch) - Local protobuf save on stopRecording (.pb + .txt) - Floor dead zone: -2.1m to +3.5m (handles tall GF→F1) - Step length K=0.25 - WiFi scan interval 1.5s - Compact switch UI (36dp height, 12sp text) - Debug logging for recording state
- Updated APP_ARCHITECTURE.md to match actual code values (Weiberg K=0.23, stair scale=0.20, heading LPF unused, debounce=200ms) - Fixed SensorEventHandler debounce comment (300ms → 200ms) - Removed separate library floor fingerprint files (merged into main JSON) - KNN floor-specific mode + observation dot + particle viz refinements
…e cleanup) - Import ordering: ServerCommunications, RecordingFragment, TrajectoryMapFragment (Google Java Style) - Naming: N → PARTICLE_COUNT, K → KNN_NEIGHBORS - Javadoc: added to 10+ public/private methods across RecordingFragment, ParticleFilter, CorrectionFragment - Comments: algorithm explanations for wall projection, segment intersection, KNN warmup - Cleanup: removed stale TODOs, dead code, restored failure Toast in MainActivity - Performance: added onDestroyView() to RecordingFragment and TrajectoryMapFragment to stop leaked handlers, timers, and animators - Performance: spline interpolation windowed to last 50 points (was full trajectory) - Fix: building polygons now tracked in List for proper cleanup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a complete indoor positioning demonstrator extending the PositionMe app with three core components: positioning fusion, map matching, and enhanced data display.
Positioning Fusion
Map Matching
Data Display