diff --git a/lib/controllers/flight.py b/lib/controllers/flight.py index a3905ee..af2b307 100644 --- a/lib/controllers/flight.py +++ b/lib/controllers/flight.py @@ -32,6 +32,7 @@ from lib.repositories.flight import FlightRepository from lib.controllers.environment import EnvController from lib.controllers.rocket import RocketController +from lib.services.environment import EnvironmentService class FlightController: @@ -88,7 +89,7 @@ def get_rocketpy_flight(flight: Flight) -> RocketPyFlight: RocketPyFlight """ rocketpy_rocket = RocketController.get_rocketpy_rocket(flight.rocket) - rocketpy_env = EnvController.get_rocketpy_env(flight.environment) + rocketpy_env = EnvironmentService.from_env_model(flight.environment) rocketpy_flight = RocketPyFlight( rocket=rocketpy_rocket, inclination=flight.inclination,