docs: 添加子模块说明并移除许可
MotorStudio — 通用电机调试上位机,为 PMSM/BLDC 伺服驱动开发提供统一的通信接口、实时数据可视化、参数在线管理、电机参数自动辨识与 Isaac Sim 模型导出。
完整的硬件连接与协议细节见 需求文档.md。
# 1. 安装 (开发模式) pip install -e . # 2. 运行 motorstudio # 或: python -m motorstudio
python -m pytest tests/ -v
build.bat # 依赖 .venv 虚拟环境, 产物输出到 dist\MotorStudio.exe
┌─────────────────────────────────────────────┐ │ UI Layer motorstudio/ui, /app │ Panels, Widgets, Theme, MainWindow ├─────────────────────────────────────────────┤ │ Services Layer motorstudio/services/ │ Control, Monitor, Identify, Param, Log ├─────────────────────────────────────────────┤ │ Device Layer motorstudio/device/ │ MotorDriver, RegisterCache ├─────────────────────────────────────────────┤ │ Comm Layer motorstudio/comm/ │ Transport, ProtocolAdapter, ConnectionMgr ├─────────────────────────────────────────────┤ │ Core Layer motorstudio/core/ │ Protocol, MotorModel, Identification │ (纯 Python, 零 GUI 依赖) │ ├─────────────────────────────────────────────┤ │ Utils motorstudio/utils/ │ RingBuffer, Math, Units └─────────────────────────────────────────────┘
数据流:Transport → ProtocolAdapter → MotorDriver → Service → Qt Signal → UI(线程安全)。
Transport → ProtocolAdapter → MotorDriver → Service → Qt Signal → UI
Motor_Studio/ ├── motorstudio/ # 主包 │ ├── main.py # 应用入口 │ ├── app/ # 主窗口 / 设置 │ ├── core/ # 核心层 (协议 / 电机模型 / 辨识 / 模板 / 日志) │ ├── comm/ # 通信层 (串口 / CAN 传输) │ ├── device/ # 设备层 (驱动抽象 / 寄存器缓存) │ ├── services/ # 服务层 (控制 / 监控 / 辨识 / 参数 / 记录) │ ├── ui/ # UI 层 (面板 / 控件 / 主题) │ └── utils/ # 工具 (环形缓冲 / 数学 / 单位) ├── tests/ # 单元测试 (电机模型 + 协议) ├── resources/ # 图标 / QSS 样式 ├── scripts/ # 构建辅助脚本 ├── pyproject.toml # 项目元数据 / 依赖 ├── MotorStudio.spec # PyInstaller 打包配置 ├── build.bat # Windows 一键打包脚本 └── 需求文档.md # 完整需求文档
本仓库是总工程 Motor_Project 的一个 git submodule(目录 Motor_Studio/)。总工程只记录指向本仓库某个 commit 的指针,修改后需分两步提交,否则总工程不会指向新版本:
Motor_Studio/
# 第一步:本仓库内提交并推送 git checkout master # 避免在 detached HEAD 上提交 git add . git commit -m "feat: xxx" git push origin master # 第二步:回总工程更新指针并提交 cd .. git add Motor_Studio # 更新总工程记录的子模块 commit git commit -m "chore: 更新 Motor_Studio 子模块" git push origin master
⚠️ 只提交本仓库而不更新总工程指针,他人克隆总工程得到的仍是旧版本代码。
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
Motor_Studio
MotorStudio — 通用电机调试上位机,为 PMSM/BLDC 伺服驱动开发提供统一的通信接口、实时数据可视化、参数在线管理、电机参数自动辨识与 Isaac Sim 模型导出。
功能特性
技术栈
快速开始
运行测试
打包为 Windows .exe
分层架构
数据流:
Transport → ProtocolAdapter → MotorDriver → Service → Qt Signal → UI(线程安全)。项目结构
文档
子模块说明
本仓库是总工程 Motor_Project 的一个 git submodule(目录
Motor_Studio/)。总工程只记录指向本仓库某个 commit 的指针,修改后需分两步提交,否则总工程不会指向新版本: