test(native_sim): cover wheel chassis and motor load#35
Merged
Conversation
|
👋 感谢您的贡献! 请确保:
详细的贡献指南请参考 CONTRIBUTING.md |
ttwards
marked this pull request as ready for review
July 8, 2026 08:27
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.
概要
wheel_chassisnative_sim ztest,覆盖 mecanum、steerwheel 和 chassis 公共命令映射。set立即发送控制帧,timer 平常重发当前控制命令,无可用控制目标时 fallback 到0x9C状态读取,并保留 3ms 状态回复新鲜度检查。motor_driver_simfake CAN,加入 nominal 总线时间模型,并新增 7 个 DJI 电机同 CAN、每电机不低于 950Hz 控制频率的负载测试。测试
git diff --check origin/master..HEADZEPHYR_TOOLCHAIN_VARIANT=host west twister -T tests/native_sim/motor_driver_sim --platform native_sim/native/64 --inline-logs --outdir twister-out-motor-driver-sim-lk-revertZEPHYR_TOOLCHAIN_VARIANT=host west twister -T tests/native_sim/wheel_chassis --platform native_sim/native/64 --inline-logs --outdir twister-out-wheel-chassis-pr硬件
未进行硬件验证;本 PR 仅通过 native_sim/fake CAN 仿真验证。
影响
0x9C读取帧。限制