diff --git a/src/bsk_rl/envs/general_satellite_tasking/simulation/environment.py b/src/bsk_rl/envs/general_satellite_tasking/simulation/environment.py index 3c661b53..1b83a495 100644 --- a/src/bsk_rl/envs/general_satellite_tasking/simulation/environment.py +++ b/src/bsk_rl/envs/general_satellite_tasking/simulation/environment.py @@ -121,11 +121,8 @@ def _set_gravity_bodies( self.planet.isCentralBody = ( True # ensure this is the central gravitational body ) - self.planet.useSphericalHarmParams = True - simIncludeGravBody.loadGravFromFile( - bsk_path + "/supportData/LocalGravData/GGM03S.txt", - self.planet.spherHarm, - 10, + self.planet.useSphericalHarmonicsGravityModel( + bsk_path + "/supportData/LocalGravData/GGM03S.txt", 10 ) # setup Spice interface for some solar system bodies diff --git a/src/bsk_rl/envs/general_satellite_tasking/utils/orbital.py b/src/bsk_rl/envs/general_satellite_tasking/utils/orbital.py index 37236777..c048b0f9 100644 --- a/src/bsk_rl/envs/general_satellite_tasking/utils/orbital.py +++ b/src/bsk_rl/envs/general_satellite_tasking/utils/orbital.py @@ -178,9 +178,8 @@ def init_simulator(self) -> None: planet = self.gravFactory.createEarth() self.gravFactory.createSun() planet.isCentralBody = True - planet.useSphericalHarmParams = True - simIncludeGravBody.loadGravFromFile( - bskPath + "/supportData/LocalGravData/GGM03S.txt", planet.spherHarm, 10 + planet.useSphericalHarmonicsGravityModel( + bskPath + "/supportData/LocalGravData/GGM03S.txt", 10 ) UTCInit = self.utc_init self.gravFactory.createSpiceInterface(