mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
1103byxinyu
This commit is contained in:
@@ -986,10 +986,10 @@ class CoincellDeck(Deck):
|
||||
def __init__(
|
||||
self,
|
||||
name: str = "coin_cell_deck",
|
||||
size_x: float = 1000.0, # 1m
|
||||
size_y: float = 1000.0, # 1m
|
||||
size_z: float = 900.0, # 0.9m
|
||||
origin: Coordinate = Coordinate(0, 0, 0),
|
||||
size_x: float = 3650.0, # 1m
|
||||
size_y: float = 1550.0, # 1m
|
||||
size_z: float = 2100.0, # 0.9m
|
||||
origin: Coordinate = Coordinate(-4000, 2000, 0),
|
||||
category: str = "coin_cell_deck",
|
||||
setup: bool = False, # 是否自动执行 setup
|
||||
):
|
||||
|
||||
@@ -112,7 +112,7 @@ class CoinCellAssemblyWorkstation(WorkstationBase):
|
||||
def __init__(
|
||||
self,
|
||||
deck: Deck=None,
|
||||
address: str = "172.21.32.111",
|
||||
address: str = "172.21.33.176",
|
||||
port: str = "502",
|
||||
debug_mode: bool = False,
|
||||
*args,
|
||||
@@ -138,7 +138,7 @@ class CoinCellAssemblyWorkstation(WorkstationBase):
|
||||
|
||||
# 如果没有传入 deck,则创建标准配置的 deck
|
||||
if self.deck is None:
|
||||
self.deck = CoincellDeck(size_x=1000, size_y=1000, size_z=900, setup=True)
|
||||
self.deck = CoincellDeck(size_x=1000, size_y=1000, size_z=900, origin=Coordinate(-100, -100, 0),setup=True)
|
||||
else:
|
||||
# 如果传入了 deck 但还没有 setup,可以选择是否 setup
|
||||
if self.deck is not None and len(self.deck.children) == 0:
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
},
|
||||
"data": {}
|
||||
},
|
||||
|
||||
{
|
||||
"id": "BatteryStation",
|
||||
"name": "扣电工作站",
|
||||
@@ -24,8 +25,8 @@
|
||||
"type": "device",
|
||||
"class": "coincellassemblyworkstation_device",
|
||||
"position": {
|
||||
"x": 600,
|
||||
"y": 400,
|
||||
"x": -600,
|
||||
"y": -400,
|
||||
"z": 0
|
||||
},
|
||||
"config": {
|
||||
|
||||
Reference in New Issue
Block a user