Dont present CAN items if CAN is not present in hwdef

未关闭
#151 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@garvit000 已经在做这个了。

开始于 2026年2月12日。

  • #209 来自 @garvit000 —— 已关闭,未合并
  • #227 来自 @garvit000 —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python

调研方向

在其 hwdef 不包含 CAN1 的板卡上打开 Rangefinders,点击两次并观察构建失败,以复现此问题。跟踪 Rangefinders 和 DroneCAN 选项的处理,以及 CAN1 hwdef 检查;当没有 CAN1 时不再显示与 CAN 相关的选项,或者文档所述的切换行为能够阻止无效选择并且构建成功时,即表示完成。

由索引模型根据 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 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ArduPilot/CustomBuild 的其他 Issue

查看 ArduPilot/CustomBuild 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。