Skip to content

Commit 542aba2

Browse files
committed
FIX: wrong signal at CenterOfMass.
1 parent b988283 commit 542aba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocketpy/motors/LiquidMotor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def evaluateCenterOfMass(self):
4545
tank = tankElement.get("tank")
4646
tankPosition = tankElement.get("position")
4747
totalMass += tank.mass
48-
massBalance += tank.mass * (tankPosition - tank.centerOfMass)
48+
massBalance += tank.mass * (tankPosition + tank.centerOfMass)
4949

5050
return massBalance / totalMass
5151

0 commit comments

Comments
 (0)