Skip to content

test: add firmware motion math coverage#74

Open
Pro777 wants to merge 1 commit into
m5stack:mainfrom
Spitfire-Cowboy:rowan/upstream-motion-test-coverage
Open

test: add firmware motion math coverage#74
Pro777 wants to merge 1 commit into
m5stack:mainfrom
Spitfire-Cowboy:rowan/upstream-motion-test-coverage

Conversation

@Pro777
Copy link
Copy Markdown

@Pro777 Pro777 commented May 19, 2026

Summary

  • extract the firmware motion coordinate math into a small pure helper
  • add a host-side CMake/CTest harness for normalized and point-look angle coverage
  • document the local firmware test command in firmware/README.md

Why

This improves firmware-side coverage without introducing repo-wide tooling like Codecov or touching the Flutter/server surfaces. It keeps the PR narrowly focused and easy to review.

Test

  • cmake -S tests -B build-host-tests
  • cmake --build build-host-tests
  • ctest --test-dir build-host-tests --output-on-failure

@Pro777
Copy link
Copy Markdown
Author

Pro777 commented May 19, 2026

日本語要約:

  • ファームウェアのモーション座標計算を純粋なヘルパー関数として切り出しました。
  • ホスト側で実行できる CMake/CTest のテストを追加し、角度計算のカバレッジを強化しました。
  • firmware/README.md にローカルでのテスト実行手順を追記しました。

このPRは、Flutter やサーバー側には触れず、レビューしやすい最小スコープでファームウェアのテスト性を改善するものです.

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.

1 participant