Skip to content

DevOverlayの診断JSONにIMUの判定履歴を追加します - #7616

Merged
TinyKitten merged 1 commit into
devfrom
feat/imu-decision-diagnostics
Dec 3, 2026
Merged

TinyKitten merged 1 commit into
devfrom
feat/imu-decision-diagnostics

Conversation

@TinyKitten

Copy link
Copy Markdown
Member

概要

開発者向けオーバーレイのコピー操作で、IMUによる発車・停車判定から到着候補の採否までを確認できます。

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

通常案内と記録中の判定を imuDecisions.recent に最大40件保持します。区間・センサー時刻・発車後の経過時間・測位の精度に加え、分類器から取得できた停車確率や磁気の判定も記録します。繰り返す同じ保留結果はまとめます。

実装前の影響調査

乗車案内は通常のセンサー購読と記録中の判定配信の二経路で停車候補を受け取ります。これまではコピーした診断情報から候補の生成と採否を区別できませんでした。両経路が合流する判定処理で結果を記録し、コピー時に履歴を読み出します。両経路の保留・採用とコピー結果をテストしました。

テスト

  • npm run lint
  • npm test -- --runInBand で関連4スイート120件が成功しました。
  • npm run typecheck

実機での再走は未実施です。

関連Issue

Closes #7614

スクリーンショット(任意)

画面の見た目は変わりません。コピーしたJSONの内容をテストしました。

@TinyKitten TinyKitten self-assigned this Dec 3, 2026
@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 64 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: b0b6b20d-16c9-40dc-80bd-cef86316ea13
Commits

Reviewing files that changed from the base of the PR and between f9423e7 and 1f62b4f.

Files selected for processing: 10

  • docs/imu-shadow.md
  • src/components/DevImuArrival.test.tsx
  • src/components/DevImuArrival.tsx
  • src/components/DevOverlay.test.tsx
  • src/components/DevOverlay.tsx
  • src/components/ImuShadowPanel.tsx
  • src/store/atoms/imuShadow.ts
  • src/utils/devDiagnosticsSnapshot.test.ts
  • src/utils/devDiagnosticsSnapshot.ts
  • src/utils/imuDecisionDiagnostics.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

@TinyKitten

Copy link
Copy Markdown
Member Author

@coderabbitai approve

@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor
Action performed

Comments resolved and changes approved.

@TinyKitten
TinyKitten merged commit 3110232 into dev Dec 3, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the feat/imu-decision-diagnostics branch December 3, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DevOverlayの診断JSONでIMUの停車候補と採否を確認したい

1 participant