update 更新部分UI,增加速度设置

This commit is contained in:
FrankCV2048
2024-09-05 23:01:15 +08:00
parent 371ee321d4
commit 1918520cc9
7 changed files with 575 additions and 281 deletions

View File

@ -1,3 +1,8 @@
from enum import Enum
class MoveType(Enum):
AXIS = 4
WORLD = 10
class DATARequest:
def __init__(self):
self.dsID = 'www.hc-system.com.RemoteMonitor'
@ -113,7 +118,7 @@ class Instruction:
self.smooth = 0
def toString(self):
model_str = f'"oneshot":"{self.oneshot}","action":"{self.action}","m0":"{self.m0}","m1":"{self.m1}","m2":"{self.m2}",' \
model_str = f'"oneshot":"{self.oneshot}","action":"{self.action.value}","m0":"{self.m0}","m1":"{self.m1}","m2":"{self.m2}",' \
f'"m3":"{self.m3}","m4":"{self.m4}","m5":"{self.m5}","ckStatus":"{self.ckStatus}","speed":"{self.speed}",' \
f'"delay":"{self.delay}","smooth":"{self.smooth}"'
return model_str