From bfbed72bab65d69f1f190dc316cea6fa849e2658 Mon Sep 17 00:00:00 2001 From: Hanspeter Schaub Date: Sun, 5 Nov 2023 10:42:43 -0700 Subject: [PATCH] [squash] update script to work again. --- examples/OpNavScenarios/modelsOpNav/BSK_OpNavDynamics.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/OpNavScenarios/modelsOpNav/BSK_OpNavDynamics.py b/examples/OpNavScenarios/modelsOpNav/BSK_OpNavDynamics.py index 76ec2f48a2..142b5c9270 100644 --- a/examples/OpNavScenarios/modelsOpNav/BSK_OpNavDynamics.py +++ b/examples/OpNavScenarios/modelsOpNav/BSK_OpNavDynamics.py @@ -212,10 +212,8 @@ def SetGravityEffector(self): self.mars = 2 self.jupiter = 3 - simIncludeGravBody.loadGravFromFile(bskPath + '/supportData/LocalGravData/GGM2BData.txt' - , gravBodies['mars barycenter'].spherHarm - , 2 - ) + gravBodies['mars barycenter'].useSphericalHarmonicsGravityModel( + bskPath + '/supportData/LocalGravData/GGM2BData.txt', 2) self.scObject.gravField.gravBodies = spacecraft.GravBodyVector(list(self.gravFactory.gravBodies.values())) self.gravFactory.createSpiceInterface(bskPath + '/supportData/EphemerisData/',