Dont present CAN items if CAN is not present in hwdef

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

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

2026年2月12日 から。

  • #209 @garvit000 による — マージされずにクローズ
  • #227 @garvit000 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

CAN1を含まないhwdefを持つボードで、Rangefindersを開いて2回クリックし、ビルドの失敗を確認してこれを再現します。RangefindersとDroneCANのオプション処理、およびCAN1のhwdefチェックを追跡します。CAN関連のオプションがCAN1なしでは提示されないか、文書化されたトグルの動作によって無効な選択が防止され、ビルドが成功すれば完了です。

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

説明

bug

This causes a build error

Replicate:

  1. Any board without CAN
  2. Click on Rangefinders twice to remove all of them

this will fail since the first click enables all rangefinders, including DroneCAN, which ticks the DroneCAN box, next click removes all Rangefinders but does not uncheck the DroneCAN causes a build failure(which is generally desired behavior since we cant know if a box with driving dependencies is or is not desired)

solutions:
Best: don't present any CAN related options anywhere if the hwdef for the board does not have a "CAN1" define
Easiest: clicking a partially filled section, first REMOVES all the selections, next click Adds all, instead of the other way around...

btw, I have not found another feature that depends on onboard hardware(there may be and I don't recognize it)....I thought ENET might, but currently we have no build option that depends on having that on board...and including sensor drivers for missing onboard sensors might waste space but does not cause a build error

主要言語
Python
スター
33
フォーク
73
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

ArduPilot/CustomBuild のほかの issue

ArduPilot/CustomBuild の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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