Feature request: Ability to add custom defines

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

@rob-clarke 已经在做这个了。

开始于 2026年2月3日。

  • #218 来自 @rob-clarke —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
python

调研方向

首先跟踪自定义构建服务器的表单或请求处理,以及它如何使用 --define 调用 waf。当用户可以输入任意的 define 名称和值,并且这些定义能够以等同于 waf --define 的方式传递到自定义构建时,此更改即完成;该 issue 未指定具体文件或测试。

由索引模型根据 Issue 内容生成。

描述

The ability to add arbitrary #defines would be welcome. e.g. in the AP_TemperatureSensor library, it would be nice to be able to:

  • set the number of sensors by defining AP_TEMPERATURE_SENSOR_MAX_INSTANCES
  • disable TSYS03 default address checking by defining AP_TEMPERATURE_SENSOR_TSYS03_ENFORCE_KNOWN_VALID_I2C_ADDRESS=0

This is done with waf using --define. A text box / form to add #define names / values could be added to allow the equivalent from the custom build server.

主要语言
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 摘要。