[Feature request] T-Echo Card: compass heading page using the onboard ICM-20948

オープン
#4,028 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c
領域
embedded-iot

調査の方向性

Read the companion-tiny UI and the board or EnvironmentSensorManager code to identify where a page and sensor access fit; first check how build flags and prefs are handled. The proposal names the ICM-20948 and AK09916, but leaves the integration point undecided. Done means a T-Echo Card compass page with tilt-compensated heading, on-page sensor use, calibration with saved offsets, and a build flag.

索引モデルが issue の本文から書いたものです。

説明

Use case: the LilyGo T-Echo Card has an ICM-20948 9-axis IMU (accelerometer, gyro and AK09916 magnetometer) at I2C 0x68, but no firmware uses it. A compass heading would help when hiking with the card: which way to walk, or where to point a directional antenna. GPS course-over-ground only works while you're moving.

Proposed behaviour (companion, T-Echo Card first):

  • A new "Compass" page in the companion-tiny UI: large heading in degrees plus a cardinal point (e.g. 127° SE).
  • The magnetometer and accelerometer run only while that page is showing, so there's no idle power cost.
  • Tilt compensation from the accelerometer, so the reading holds when the card isn't flat.
  • A calibration step for hard-iron offsets (rotate the card in all directions for ~15 s), started from the page or with a CLI command, with the offsets saved in prefs.
  • Behind a build flag (e.g. ENV_INCLUDE_COMPASS) so other boards aren't affected and could opt in later.

Implementation idea: a small register-level driver (ICM-20948 in I2C bypass mode, AK09916 read directly at 0x0C) rather than pulling in a full library, to keep flash use small.

Before I start on it: would a PR along these lines be welcome, and is there a preferred place for it (board class vs EnvironmentSensorManager)?

主要言語
C
スター
3.9k
フォーク
1.5k
平均マージ
2日 7時間
マージ済み PR(30日)
56

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

meshcore-dev/MeshCore のほかの issue

meshcore-dev/MeshCore の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。