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

Đang mở
#4,028 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
embedded-iot

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)?

Ngôn ngữ chính
C
Star
3.9k
Fork
1.5k
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
56

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của meshcore-dev/MeshCore

Tất cả issue của meshcore-dev/MeshCore

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.