From 136eeacc3db8144daf84e309a9264ab7ef95a9cd Mon Sep 17 00:00:00 2001 From: L30 Date: Wed, 19 Mar 2025 14:39:06 +0100 Subject: [PATCH 1/2] BUG: fixed AGL altitude in _FlightPrints.events_registered --- rocketpy/prints/flight_prints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocketpy/prints/flight_prints.py b/rocketpy/prints/flight_prints.py index 06db442f8..d098fd776 100644 --- a/rocketpy/prints/flight_prints.py +++ b/rocketpy/prints/flight_prints.py @@ -245,7 +245,7 @@ def events_registered(self): print(f"\tFreestream speed at inflation: {speed:.3f} m/s") print( f"\tAltitude at inflation: {altitude:.3f} m (ASL) | " - f"{self.flight.altitude(trigger_time):.3f} m (AGL)" + f"{self.flight.altitude(open_time):.3f} m (AGL)" ) def impact_conditions(self): From 1cd8fed0074fe4495f7b86712d5627a7dcd2cfb8 Mon Sep 17 00:00:00 2001 From: L30 Date: Wed, 19 Mar 2025 15:46:40 +0100 Subject: [PATCH 2/2] updeted CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2d8908c2..fdebd8f98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ Attention: The newest changes should be on top --> - BUG: do not allow drawing rockets with no aerodynamic surface [#774](https://github.com/RocketPy-Team/RocketPy/pull/774) - BUG: update flight simulation logic to include burn start time [#778](https://github.com/RocketPy-Team/RocketPy/pull/778) +- BUG: fixed AGL altitude print for parachutes with lag [#788](https://github.com/RocketPy-Team/RocketPy/pull/788) ## [v1.8.0] - 2025-01-20