fix : 트래킹 중 현재 위치 마커/카메라 동작 개선 (실시간 갱신·튐 좌표 필터·중앙 follow) - #139
Merged
Conversation
백그라운드 위치 태스크는 '항상' 권한이 있어야 시작돼, '앱 사용 중만 허용' 시 마커가 초기 위치에 고정되던 문제 해결. 포어그라운드 watchPositionAsync를 추가하고 두 소스의 위치 업데이트를 타임스탬프 기반으로 중복 제거.
직전 채택 좌표 대비 비현실적 점프(속도 ≈108km/h 초과)나 저정확도 큰 점프 좌표를 마커·경로·GPS publish에서 모두 스킵하도록 필터 추가. 위치 콜백에 accuracy를 함께 전달.
기존엔 자유기록만 현위치 follow였고 코스 트래킹은 전체 코스 맞춤이라 현위치가 중앙에서 벗어났음. 트래킹 중에는 모드 무관하게 follow를 켜고, 전체 코스 맞춤은 트래킹 시작 전 미리보기용으로만 동작하도록 변경.
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
CI(Expo Install Check)의 'expo install --fix' 후 diff 검증 통과를 위해 expo 기대 버전 및 package-lock을 최신화. node 22.20.0 / npm 10.9.3 기준.
peisonger
approved these changes
Jul 22, 2026
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.
개요
트래킹(자유기록·코스) 중 현재 위치 마커와 카메라 동작에서 발견된 이슈 3건을 수정합니다.
문제 상황
변경 사항
1. 마커 실시간 갱신 (포어그라운드 위치 추적 추가)
watchPositionAsync를 추가해, 앱이 열려 있는 동안 마커·경로·GPS publish를 담당하도록 함. (백그라운드 태스크는 화면이 꺼졌을 때 담당)2. GPS 튐 좌표 필터
accuracy를 위치 콜백에 함께 전달.MAX_LOCATION_ACCURACY_M,MIN_JUMP_M,MAX_SPEED_MPS)로 분리해 조정 가능.3. 트래킹 중 현위치 중앙 follow
변경 파일
app/(tabs)/tracking.tsxfeatures/tracking/tasks/location-task.ts✅ 체크리스트
참고
MAX_SPEED_MPS를 상향하면 됩니다.