Repository navigation
駅到着判定の感度を改善: 閾値下限・GPS精度反映・位置スムージング・探索範囲最適化 - #5266
Merged
Merged
Conversation
Contributor
📝 WalkthroughウォークスルーこのPRはGPS精度ベースの閾値調整と位置情報の検証改善を導入します。最小閾値定数を追加し、閾値計算を制限するクランプ関数を実装し、ステーション更新フックで精度ボーナス補正を追加し、有効なステーションフィルタリングをメモ化し、速度ベースの外れ値フィルタリングとEMA平滑化を位置情報更新に追加します。 変更内容
シーケンス図sequenceDiagram
actor Loc as Location Update
participant Smooth as Location Smoothing<br/>(速度フィルタ/EMA)
participant Store as Location Store
participant Refresh as useRefreshStation
participant Threshold as useThreshold
participant Detect as Arrival Detection<br/>(isArrived/isApproaching)
Loc->>Smooth: Raw position + accuracy
alt Speed too high (outlier)
Smooth->>Store: Discard, keep prev accuracy
else Valid location
Smooth->>Smooth: Apply EMA smoothing
Smooth->>Store: Save smoothed coords + accuracy
end
Store->>Refresh: Updated location data
Refresh->>Refresh: Read accuracy from location
Refresh->>Refresh: Calculate accuracyBonus<br/>(capped by MAX_ACCURACY_BONUS)
Refresh->>Threshold: Get base thresholds<br/>(with min/max clamping)
Refresh->>Refresh: Compute effectiveArrivedThreshold<br/>(base + accuracyBonus)
Refresh->>Refresh: Compute effectiveApproachingThreshold<br/>(base + accuracyBonus)
Refresh->>Detect: Compare distance to<br/>effective thresholds
Detect->>Detect: Determine arrival/approaching state
推定コードレビュー工数🎯 4 (Complex) | ⏱️ ~60 minutes 関連する可能性のあるPR
詩
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
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.
https://claude.ai/code/session_01B1s9TeyqcuVknhESHr6Z7L
Summary by CodeRabbit
リリースノート
新機能
バグ修正
パフォーマンス改善