From 027884ccb88f65d6cd8d43b442dc18cf7fe336c8 Mon Sep 17 00:00:00 2001 From: Gabriel Barberini Date: Mon, 21 Oct 2024 20:26:58 -0300 Subject: [PATCH] changes aerodynamic_surfaces.add to add_surfaces --- lib/services/rocket.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/services/rocket.py b/lib/services/rocket.py index b6286a1..cf6aef2 100644 --- a/lib/services/rocket.py +++ b/lib/services/rocket.py @@ -61,8 +61,7 @@ def from_rocket_model(cls, rocket: RocketView) -> Self: # NoseCone if rocket.nose: nose = cls.get_rocketpy_nose(rocket.nose) - rocketpy_rocket.aerodynamic_surfaces.add(nose, nose.position) - rocketpy_rocket.evaluate_static_margin() + rocketpy_rocket.add_surfaces(nose, nose.position) # FinSet if rocket.fins: @@ -70,16 +69,12 @@ def from_rocket_model(cls, rocket: RocketView) -> Self: rocket.fins ) for finset in rocketpy_finset_list: - rocketpy_rocket.aerodynamic_surfaces.add( - finset, finset.position - ) - rocketpy_rocket.evaluate_static_margin() + rocketpy_rocket.add_surfaces(finset, finset.position) # Tail if rocket.tail: tail = cls.get_rocketpy_tail(rocket.tail) - rocketpy_rocket.aerodynamic_surfaces.add(tail, tail.position) - rocketpy_rocket.evaluate_static_margin() + rocketpy_rocket.add_surfaces(tail, tail.position) # Air Brakes