Repository navigation
feat: native compass bearing integration to current location indicator on maps - #2406
Open
PeterBaker0 wants to merge 18 commits into
Open
PeterBaker0 wants to merge 18 commits into
PeterBaker0 wants to merge 18 commits into
Conversation
Signed-off-by: Peter Baker <peter.baker122@csiro.au>
Signed-off-by: Peter Baker <peter.baker122@csiro.au>
E2E ✅ passed
After downloading and extracting the .zip file, open Updated for commit 0c8da79 |
PeterBaker0
marked this pull request as draft
October 5, 2026 03:38
Contributor
Author
|
On device (Android) it feels jittery and a bit inconsistent. need to have a look at smoothing more closely. |
Contributor
Author
|
@xinyuhoulucy this is a starting point |
Signed-off-by: Xinyu Hou <xinyu.hou@csiro.au>
xinyuhoulucy
marked this pull request as ready for review
November 16, 2026 06:29
Signed-off-by: Xinyu Hou <xinyu.hou@csiro.au>
Signed-off-by: Xinyu Hou <xinyu.hou@csiro.au>
Signed-off-by: Xinyu Hou <xinyu.hou@csiro.au>
Signed-off-by: Xinyu Hou <xinyu.hou@csiro.au>
Signed-off-by: Xinyu Hou <xinyu.hou@csiro.au>
Signed-off-by: Xinyu Hou <xinyu.hou@csiro.au>
Signed-off-by: Xinyu Hou <xinyu.hou@csiro.au>
Signed-off-by: Xinyu Hou <xinyu.hou@csiro.au>
xinyuhoulucy
force-pushed
the
feat/native-compass-integration
branch
from
November 25, 2026 04:04
05e8c71 to
7129197
Compare
Signed-off-by: Xinyu Hou <xinyu.hou@csiro.au>
Signed-off-by: Xinyu Hou <xinyu.hou@csiro.au>
This branch has not been deployed
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.
feat: improve device compass and GPS bearing fallback
Description
Provide a stable device-bearing indicator using the compass when available and GPS course-over-ground as a fallback.
Proposed Changes
CLLocationManager.headingAvailable()to check whether compass heading is supported.How to Test
pnpm --filter=@faims3/forms exec vitest --run lib/components/maps/heading.test.ts lib/hooks/useDeviceHeading.test.tsx lib/components/maps/MapComponent.test.tsx.pnpm --filter=@faims3/forms typecheck.Additional Information
GPS fallback has been tested on an Android device without a magnetometer. iOS physical-device verification remains outstanding.
The Android sensor check uses a small native bridge; Capgo Compass and device permissions remain unchanged.
Checklist