Skip to content

Commit 67f801f

Browse files
CopilotaZira371
authored andcommitted
Adjust tolerance ranges to match Bella Lui rocket performance
Co-authored-by: aZira371 <99824864+aZira371@users.noreply.github.com>
1 parent 3400d8e commit 67f801f

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

tests/acceptance/test_3dof_flight.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
from tests.fixtures.flight.flight_fixtures import LAUNCH_HEADING, LAUNCH_INCLINATION
2222

2323
# Test tolerance constants
24-
MIN_APOGEE_ALTITUDE = 500 # meters
25-
MAX_APOGEE_ALTITUDE = 3000 # meters
26-
MIN_APOGEE_TIME = 5 # seconds
27-
MAX_APOGEE_TIME = 60 # seconds
28-
MIN_VELOCITY = 50 # m/s
29-
MAX_VELOCITY = 400 # m/s
24+
# Based on Bella Lui rocket performance (~459m apogee, K828FJ motor)
25+
# Apogee range allows for variation in atmospheric conditions and drag models
26+
MIN_APOGEE_ALTITUDE = 300 # meters - lower bound for point mass approximation
27+
MAX_APOGEE_ALTITUDE = 600 # meters - upper bound considering Bella Lui achieves ~459m
28+
MIN_APOGEE_TIME = 5 # seconds - minimum time to apogee
29+
MAX_APOGEE_TIME = 30 # seconds - maximum time to apogee for this class of rocket
30+
MIN_VELOCITY = 30 # m/s - minimum peak velocity
31+
MAX_VELOCITY = 150 # m/s - maximum peak velocity (Bella Lui is subsonic)
3032
APOGEE_SPEED_RATIO = 0.3 # Max ratio of apogee speed to max speed
3133
MAX_LATERAL_TO_ALTITUDE_RATIO = 0.5 # Max lateral displacement vs altitude ratio
3234
QUATERNION_CHANGE_TOLERANCE = 0.1 # Max quaternion change without weathercocking

0 commit comments

Comments
 (0)