feat(DLPilot): M305 实测负载功率对接(功率检测三步序列)

This commit is contained in:
2026-09-18 15:10:14 +08:00
parent 30bc224710
commit 9b29b6afd6
6 changed files with 52 additions and 20 deletions
+2 -1
View File
@@ -121,7 +121,8 @@ def run_dlpc(port, baud, cmds):
print('← (35s 超时无响应)')
rc = 1
else:
print(f'← {dlpc_rs485.describe(got)} [{got.raw.hex(" ").upper()}]')
nice = dlpc_rs485.format_power(cmd, got) # 电源命令二进制载荷译码
print(f'← {nice or dlpc_rs485.describe(got)} [{got.raw.hex(" ").upper()}]')
if got.type_code != 0xF0:
rc = 1
ser.close()