Skip to content

Commit

Permalink
Update ARdcTrackToOGrEE.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Novanef committed Apr 5, 2024
1 parent 7e1dc8d commit f656ae7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AR/source/classes/ARdcTrackToOGrEE.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def GetRack(

position = GetPosition(rackName=rackDataJson["tiName"])
if position is not None:
rackData["attributes"]["posXYZ"] = f"[{position[0] / 1000},{position[1] / 1000},0]"
rackData["attributes"]["posXYZ"] = f"[{round(position[0] / 1000,2)},{round(position[1] / 1000,2)},0]"
rackData["attributes"]["posXYUnit"] = "m"
if (
position[2] == "East"
Expand All @@ -256,9 +256,9 @@ def GetRack(
position[2] == "West"
and roomData["attributes"]["axisOrientation"] == "+x+y"
):
rackData["attributes"]["orientation"] = "rear"
rackData["attributes"]["rotation"] = "rear"
else:
rackData["attributes"]["orientation"] = "front"
rackData["attributes"]["rotation"] = "front"

rackDataJson["id"] = rackData["id"]
templates = [rackTemplate]
Expand Down

0 comments on commit f656ae7

Please sign in to comment.