新增复合管控器(pCCU) + 惯导数据解析 + 设备控制页增强 + 0824协议文档归档
- 新增 pCCU 复合管控器程序(src/pCCU):FC/PM 双链路(UDP)、协议编解码器 (FcProtocol/PmProtocol/Frame/Message/MessageRegistry)、快照与落库(DbStore)、 内置 WebServer;挂入 src/CMakeLists.txt 与板卡 mission(h100.moos) - 惯导/深度数据:新增 uDevice_insData 消息解析,接入 UpperCommManager, pPowerMangerHost 注册监视,UpmsgTest 覆盖 - pPowerMangerHost 设备控制页增强(web/index.html) - 部署/运维脚本改为 4 个 systemd 服务(moosdb/pPowerManger/pPowerMangerHost/pCCU): deploy/clean-data/fetch-data 同步适配 - 协议文档:归档 0824 控制主机与复合管控器通信协议 xlsx 及关联 docx,移除旧 md - 测试:新增 pccu 单元/集成测试与 disSysTest Python 配电仿真 - 清理:移除未使用的 CCU 状态调试打印 coutMsg;.gitignore 补充编译产物/临时文件忽略
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env python3
|
||||
"""PyInstaller 打包脚本(可选)。
|
||||
|
||||
用法:
|
||||
pip install pyinstaller
|
||||
python3 build.py
|
||||
产物:dist/DisSysTest(.exe) —— 单文件免安装,可在目标平台直接运行。
|
||||
|
||||
注意:需在目标平台(如 Windows)上执行,PyInstaller 不支持跨平台交叉打包。
|
||||
"""
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
HERE = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
def main():
|
||||
if shutil.which("pyinstaller") is None and not os.path.exists(
|
||||
os.path.join(sys.prefix, "Scripts", "pyinstaller.exe")):
|
||||
print("未检测到 PyInstaller,请先安装: pip install pyinstaller")
|
||||
return 1
|
||||
|
||||
cmd = [
|
||||
sys.executable, "-m", "PyInstaller",
|
||||
"--onefile", # 单文件
|
||||
"--windowed", # 无控制台窗口
|
||||
"--name", "DisSysTest",
|
||||
"--paths", HERE,
|
||||
"--clean", "--noconfirm",
|
||||
os.path.join(HERE, "run.py"),
|
||||
]
|
||||
subprocess.check_call(cmd)
|
||||
print("打包完成:dist/DisSysTest(.exe)")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Reference in New Issue
Block a user