Skip to content

#KL25-31 累計距離を測るクラスを作る#7

Merged
molpui0726 merged 10 commits intomainfrom
ticket-KL25-31
May 23, 2025
Merged

#KL25-31 累計距離を測るクラスを作る#7
molpui0726 merged 10 commits intomainfrom
ticket-KL25-31

Conversation

@molpui0726
Copy link
Copy Markdown
Contributor

チェックリスト

  • clang-format している
  • コーディング規約に準じている
  • チケットの完了条件を満たしている

変更点

  • 車輪の半径と回転数から、走行距離を測定する Mileage クラスを追加
  • Docker 環境下で clang-format が動かなかったため、パッケージを追加
  • make format 適用時に、どのファイルが自動整形されたかや、整形する必要がなかった旨のメッセージを示す機能を追加

@notion-workspace
Copy link
Copy Markdown

@molpui0726 molpui0726 self-assigned this May 22, 2025
@molpui0726 molpui0726 requested a review from Copilot May 22, 2025 11:29
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new Mileage class that calculates the travel distance based on wheel rotation angles, adds corresponding tests, and updates the tooling to provide detailed clang-format output in both Docker and local environments.

  • Added the Mileage class with methods to compute wheel and overall mileage.
  • Implemented new unit tests for positive, negative, and zero angles.
  • Updated Makefile and Dockerfile to handle clang-format more robustly.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/MileageTest.cpp Added unit tests validating mileage calculations with angle bounds
modules/common/SystemInfo.h Introduced global constants for wheel radius and tread width
modules/calculators/Mileage.h & .cpp Implemented the Mileage class and its calculation methods
Makefile Enhanced formatting messages and file detection logic
Dockerfile Added clang-format installation

Copy link
Copy Markdown
Collaborator

@takuchi17 takuchi17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

処理はよさそうな感じです.リファクタリングだけよろしくお願いします.

Copy link
Copy Markdown
Collaborator

@takahashitom takahashitom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

軽微な修正だけお願いします。

実際に走らせてみたやつが Notion にあるので、見てみてください

Copy link
Copy Markdown
Collaborator

@takahashitom takahashitom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正箇所の範囲の指定をミスってたのであげなおしです

Copy link
Copy Markdown
Collaborator

@takahashitom takahashitom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

問題ないと思います。
レビュー対応お疲れさまでした。

Copy link
Copy Markdown
Contributor

@aridome222 aridome222 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Copy Markdown
Collaborator

@takuchi17 takuchi17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正ありがとうございます.
問題ないと思います.LGTM!!

@molpui0726 molpui0726 merged commit 82a5ded into main May 23, 2025
6 checks passed
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.

5 participants