update 更新IO面板
This commit is contained in:
@ -28,7 +28,7 @@ class DataAddress:
|
||||
self.curMode = 0
|
||||
self.boardIONum = ''
|
||||
self.input_n = ''
|
||||
self.output_n = ''
|
||||
self.output_n = 0
|
||||
self.axisNum = '6'
|
||||
self.axis_n = ''
|
||||
self.world_0 = 0
|
||||
@ -55,7 +55,7 @@ class DataAddress:
|
||||
self.isMoving = False
|
||||
self.M_n = ''
|
||||
self.RemoteCmdLen = 0
|
||||
self.toolCoord=''
|
||||
self.toolCoord=0
|
||||
|
||||
#return
|
||||
def setPosition(self,w0,w1,w2,w3,w4,w5,a0,a1,a2,a3,a4,a5):
|
||||
@ -76,6 +76,10 @@ class DataAddress:
|
||||
real_position = Real_Position().init_position(self.world_0,self.world_1,self.world_2,self.world_3,self.world_4,self.world_5)
|
||||
return real_position
|
||||
|
||||
def get_IO_bits(self):
|
||||
io_bits_str = format(self.output_n, '032b')[::-1]
|
||||
io_bits_arry = [bit == '1' for bit in io_bits_str]
|
||||
return io_bits_arry
|
||||
|
||||
def setAngle(self,a0,a1,a2,a3,a4,a5):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user