Skip to content

Commit

Permalink
TST: inertia values on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusStano committed Aug 23, 2024
1 parent 090d5d7 commit 3a4c742
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/unit/test_flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
],
)
Expand Down Expand Up @@ -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)),
],
)
Expand Down Expand Up @@ -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)),
],
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/test_rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3a4c742

Please sign in to comment.