Skip to content

Commit d21c092

Browse files
committed
copy thruster r_PcP_P onto ThrClusterMap.thrOffset for sub-body thrusters
1 parent e3acc4f commit d21c092

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/utilities/vizSupport.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,9 +1335,10 @@ def enableUnityVisualization(
13351335
if thrColors:
13361336
if thrColors[c] is not None:
13371337
thSet.color = thrColors[c][clusterCounter]
1338-
for thrLogMsg in (
1339-
thrEff.thrusterOutMsgs
1340-
): # loop over the THR cluster log message
1338+
# optionally offset the thruster positions, useful for effector branching corrections
1339+
if scData.parentSpacecraftName != "":
1340+
thSet.thrOffset = thrEff.r_PcP_P
1341+
for thrLogMsg in (thrEff.thrusterOutMsgs): # loop over the THR cluster log message
13411342
thrList.append(thrLogMsg.addSubscriber())
13421343
thrInfo.append(thSet)
13431344
clusterCounter += 1

0 commit comments

Comments
 (0)