Skip to content

Commit 49a5593

Browse files
CopilotaZira371
andcommitted
Import launch constants from fixtures to eliminate duplication
Co-authored-by: aZira371 <[email protected]>
1 parent 4d503c6 commit 49a5593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/acceptance/test_3dof_flight.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import numpy as np
1919

2020
from rocketpy import Flight
21+
from tests.fixtures.flight.flight_fixtures import LAUNCH_HEADING, LAUNCH_INCLINATION
2122

2223
# Test tolerance constants
2324
MIN_APOGEE_ALTITUDE = 500 # meters
@@ -32,8 +33,7 @@
3233
WEATHERCOCK_COEFFICIENTS = [0.0, 0.5, 1.0, 2.0] # Test weathercock coefficients
3334
WEATHERCOCK_RANGE_THRESHOLD = 1.0 # Minimum apogee difference (meters)
3435
LATERAL_INCREASE_THRESHOLD = 0.5 # Minimum lateral increase (meters)
35-
LAUNCH_INCLINATION = 85 # degrees from horizontal
36-
LAUNCH_HEADING = 0 # degrees
36+
# LAUNCH_INCLINATION and LAUNCH_HEADING imported from flight_fixtures
3737
MASS_TOLERANCE = 0.001 # kg
3838
THRUST_TOLERANCE = 1e-6 # N
3939

0 commit comments

Comments
 (0)