Refactor: Split up sensor.c

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

@ETSells がすでに取り組んでいます。

2026年10月28日 から。

  • #173 @ETSells による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
活発
技術スタック
c
領域
embedded-iot

調査の方向性

Start by reading sensor.c alongside its header and listing every exported function, then compare that list against the driver and app-layer modules named in the issue. The header is flagged as the main complication, so decide which declarations move with their implementation before editing. Done means sensor.c no longer lives in mod, its functions sit in driver or the app layer, and the build still links; rev 3 platform-specific sensor functions should then be possible.

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

説明

advanced refactor

Version: v2.8.0 && v3.0.0

Describe the feature you'd like
The sensor module in its current form has no place living in mod based on our idea of what the library should be.

Image

Many of these functions belong in driver, and others should live in the app layer.

Some subject matter expert should make an effort to move functions to their truly correct locations. The header is going to be the biggest complication, I expect, but that's not a huge deal.

This will also allow us to implement platform-specific versions of sensor functions on rev 3.

Describe alternatives you've considered
Leaving as-is.

Additional context
N/A

Points of Contact
Mod maintainer for v2.8.0 and beyond: @NArmistead
Additional SME: @ETSells

主要言語
C
スター
4
フォーク
2
平均マージ
5日 2時間
マージ済み PR(30日)
6

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

SunDevilRocketry/mod のほかの issue

SunDevilRocketry/mod の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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