update 调试完成
This commit is contained in:
@ -124,11 +124,13 @@ class Instruction:
|
||||
self.speed = 10
|
||||
self.delay = 1.0
|
||||
self.smooth = 0
|
||||
self.tool=2
|
||||
|
||||
def toString(self):
|
||||
model_str = f'"oneshot":"{self.oneshot}","action":"{self.action.value}","m0":"{self.m0}","m1":"{self.m1}","m2":"{self.m2}",' \
|
||||
model_str = f'"oneshot":"{self.oneshot}","action":"{self.action}","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}"'
|
||||
f'"delay":"{self.delay}","smooth":"{self.smooth}","tool":"{self.tool}"'
|
||||
print(model_str)
|
||||
return model_str
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user