update 更新表格处理,更新添加自由路径,更新了重连机制

This commit is contained in:
FrankCV2048
2024-12-13 23:02:22 +08:00
parent b804b52b1f
commit d231d9fcc8
10 changed files with 104 additions and 20 deletions

View File

@ -18,6 +18,18 @@ class Position:
else:
return False
pass
def is_error_angel_move(self,position,interval):
if self.X - position.X >= interval or \
self.Y - position.Y >= interval or \
self.Z - position.Z >= interval or \
self.U - position.U >= interval or \
self.V - position.V >= interval or \
self.W - position.W >= interval:
return True
else:
return False
pass
"""
摄像头识别位置和角度
"""

View File

@ -77,6 +77,9 @@ 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 getAnglePosition(self):
real_position = Real_Position().init_position(self.axis_0,self.axis_1,self.axis_2,self.axis_3,self.axis_4,self.axis_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]