feat(motor): add Gaoqing CAN driver#36
Merged
Merged
Conversation
|
👋 感谢您的贡献! 请确保:
详细的贡献指南请参考 CONTRIBUTING.md |
ttwards
marked this pull request as ready for review
July 8, 2026 13:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
gq,motordevicetree binding、CONFIG_MOTOR_GQ和高擎电机 CAN 驱动。enable-canfd在 classic CAN 与 CAN FD 协议路径间切换;DT 启用 CAN FD 时要求CONFIG_CAN_FD_MODE=y,初始化时检查 CAN 控制器是否声明CAN_MODE_FD能力。gq_demosample,覆盖dm_mc02的 CAN FD 配置和robomaster_board_c的 classic CAN 配置,并把高擎驱动接入 native_sim motor driver smoke test。测试
west build -b dm_mc02 samples/motor/gq_demo --pristine -d /tmp/mambo_build_gq_demo_dm_mc02west build -b robomaster_board_c samples/motor/gq_demo --pristine -d /tmp/mambo_build_gq_demo_robomaster_cgit diff --checkZEPHYR_TOOLCHAIN_VARIANT=host python -m west twister -T tests/native_sim/motor_driver_sim --platform native_sim/native/64 --inline-logs,14/14 test cases passed硬件
未执行硬件验证。
影响
gq,motor。CONFIG_MOTOR_GQ。gq。enable-canfd是编译期和运行期契约:DT 开启时必须启用CONFIG_CAN_FD_MODE,运行时 CAN 控制器必须支持 FD。限制