Skip to content

地下鉄モード中のノイジーなprevによる速度フィルタ誤棄却を修正 - #5665

Merged
TinyKitten merged 1 commit into
devfrom
claude/review-sgd-algorithm-R2vYX
Mar 24, 2026
Merged

TinyKitten merged 1 commit into
devfrom
claude/review-sgd-algorithm-R2vYX

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Mar 24, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

リリースノート

  • 改善
    • 位置情報フィルタリングパイプラインの精度を向上しました。位置情報の追跡ロジックを最適化し、より正確で安定した位置情報更新を実現しました。地下鉄モード含む各モードでの位置情報処理の一貫性が向上しています。

lastFilteredLocationAtomを導入し、速度フィルタ・EMAスムージングの基準位置を
UI表示用のlocationAtomから分離。地下鉄モード中はフィルタ基準を更新しないことで、
地下鉄→地上復帰時に最初のfixが誤ってMAX_PLAUSIBLE_SPEEDで棄却される問題を防ぐ。

https://claude.ai/code/session_01JU67LRYTFiwHjDt9jXMQCb
@github-actions github-actions Bot added the react label Mar 24, 2026
@coderabbitai

coderabbitai Bot commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 57ee08c9-5972-41f3-8ad6-58688158faa9

📥 Commits

Reviewing files that changed from the base of the PR and between 481eaa3 and a4e04b6.

📒 Files selected for processing (1)
  • src/store/atoms/location.ts

📝 Walkthrough

Walkthrough

位置情報フィルタリング処理を改善するため、最後にフィルタリングされた位置を保存する新しいJotaiアトムlastFilteredLocationAtomを追加。setLocation関数を更新し、DT計算、距離・速度ベースのフィルタリング、EMA平滑化の参照値として使用。

Changes

コホート / ファイル(s) 変更内容
位置情報フィルタリングロジック
src/store/atoms/location.ts
新しいアトムlastFilteredLocationAtomを追加し、フィルタリング済み位置の履歴を追跡。setLocationの制御フローを修正し、Subway モード時の動作を分離。ローカルフィルタリング参照値を以前の平滑化位置から最後のフィルタリング済み位置に変更。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 ウサギが飛び跳ねてお祝い♡
位置情報、より滑らかに~
フィルタリング、完璧なリズム
最後の位置をしっかり記憶
移動の軌跡、美しく流れる!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PRタイトルは、地下鉄モード中のノイズのあるprev値による速度フィルタの誤棄却の修正という、変更内容の主要な目的を正確かつ具体的に説明しており、コード変更の中核と一致しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/review-sgd-algorithm-R2vYX

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants