Repository navigation
R1(到着圏の緩和)を発車観測後(DEPARTEDアンカー)の前方駅限定にして地下始発駅で現在駅が進まないロックを解消 - #6372
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01NEhSCr8uZ4drhiUxKcRFRU
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughuseRefreshStationの到着判定における到着圏緩和の適用条件を、etaPhaseAtomのDWELLINGのみからetaAnchorAtomがDEPARTEDかつDWELLINGの場合に限定するよう変更し、対応するテストコードでこの挙動を検証するテストを追加した。 ChangesETA補助の到着圏緩和
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
5 of 9 tasks
4 of 9 tasks
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.
概要
地下鉄などGPS精度が落ちる区間で、ETA補助(R1)を有効にすると「最初の駅から現在駅が進みにくくなる」実機フィードバックへの修正です。R1の到着圏緩和が始発駅で自己強化ロックを作っていたため、緩和の適用範囲を「発車を観測済み(DEPARTEDアンカー)の前方駅」に限定します。
変更の種類
変更内容
useRefreshStation.tsの R1(到着圏の緩和)にanchor?.kind === 'DEPARTED'条件を追加し、緩和を「発車観測後の前方駅」限定にした。AT_STATIONアンカーから出る DWELLING は必ず自駅。これを緩和すると自駅の到着圏が広がってarrivedが張り付き、DEPARTEDが記録されず自駅 DWELLING に固定される自己強化ロック(始発駅から現在駅が進まない)に陥っていた。DEPARTEDアンカーから出る DWELLING は前方の次駅なので、発車後に次駅の到着をETAで補助する本来の目的だけを残し、停車中の駅を過剰に保持しない。useRefreshStation.test.tsxに回帰テストを2件追加(精度800m・駅から約350m=通常圏250m外/R1圏500m内でアンカー種別のみを変えて検証)。DEPARTED: 到着圏を広げてarrived=true(次駅到着補助の利点は維持)。AT_STATION: 緩和せずarrived=false(始発駅ロック防止を固定)。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Generated by Claude Code
Summary by CodeRabbit
Bug Fixes
Tests