From 3a4c742bf17b09610c78fc57e76293f44118eb9c Mon Sep 17 00:00:00 2001 From: MateusStano Date: Fri, 23 Aug 2024 12:33:53 +0200 Subject: [PATCH] TST: inertia values on tests --- tests/unit/test_flight.py | 6 +++--- tests/unit/test_rocket.py | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/unit/test_flight.py b/tests/unit/test_flight.py index 3ee6d7637..e5446966d 100644 --- a/tests/unit/test_flight.py +++ b/tests/unit/test_flight.py @@ -169,7 +169,7 @@ def test_out_of_rail_stability_margin(flight_calisto_custom_wind): [ ("t_initial", (0.258818, -0.649515, 0)), ("out_of_rail_time", (0.788918, -1.979828, 0)), - ("apogee_time", (-0.531829, -0.754103, 0)), + ("apogee_time", (-0.522394, -0.744154, 0)), ("t_final", (0, 0, 0)), ], ) @@ -208,7 +208,7 @@ def test_aerodynamic_moments(flight_calisto_custom_wind, flight_time, expected_v [ ("t_initial", (1.6542528, 0.65918, -0.067107)), ("out_of_rail_time", (5.05334, 2.01364, -1.7541)), - ("apogee_time", (2.378161, -1.677083, -0.933044)), + ("apogee_time", (2.354663, -1.652953, -0.936126)), ("t_final", (0, 0, 159.2212)), ], ) @@ -249,7 +249,7 @@ def test_aerodynamic_forces(flight_calisto_custom_wind, flight_time, expected_va ("out_of_rail_time", (0, 2.248727, 25.703072)), ( "apogee_time", - (-14.426265, 15.596488, -0.000254), + (-14.485655, 15.580647, -0.000240), ), ("t_final", (5, 2, -5.65998)), ], diff --git a/tests/unit/test_rocket.py b/tests/unit/test_rocket.py index 75faa36af..a0d9b79a3 100644 --- a/tests/unit/test_rocket.py +++ b/tests/unit/test_rocket.py @@ -458,9 +458,9 @@ def test_evaluate_com_to_cdm_function(calisto): def test_get_inertia_tensor_at_time(calisto): # Expected values (for t = 0) # TODO: compute these values by hand or using CAD. - I_11 = 10.64885 - I_22 = 10.64885 - I_33 = 0.039942 + I_11 = 10.516647727227216 + I_22 = 10.516647727227216 + I_33 = 0.0379420341586346 # Set tolerance threshold atol = 1e-5 @@ -484,9 +484,9 @@ def test_get_inertia_tensor_at_time(calisto): def test_get_inertia_tensor_derivative_at_time(calisto): # Expected values (for t = 2s) # TODO: compute these values by hand or using CAD. - I_11_dot = -0.718752566200817 - I_22_dot = -0.718752566200817 - I_33_dot = -0.000671493662305 + I_11_dot = -0.7164327431607691 + I_22_dot = -0.7164327431607691 + I_33_dot = -0.0006714936623050 # Set tolerance threshold atol = 1e-3