From f301352528c25edeb5137e474fe4d70b3f8186d7 Mon Sep 17 00:00:00 2001 From: MateusStano Date: Fri, 15 Dec 2023 20:24:26 +0100 Subject: [PATCH] ENH: get hAGL from barometric_height --- rocketpy/simulation/flight.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rocketpy/simulation/flight.py b/rocketpy/simulation/flight.py index c4a719e88..299ddaead 100644 --- a/rocketpy/simulation/flight.py +++ b/rocketpy/simulation/flight.py @@ -697,9 +697,8 @@ def __init__( parachute.noisy_pressure_signal.append([node.t, pressure + noise]) # Gets height above ground level considering noise hAGL = ( - self.env.pressure.find_input( + self.env.barometric_height( pressure + noise, - self.y_sol[2], ) - self.env.elevation ) @@ -1006,9 +1005,8 @@ def __init__( ) # Gets height above ground level considering noise hAGL = ( - self.env.pressure.find_input( + self.env.barometric_height( pressure + noise, - overshootable_node.y[2], ) - self.env.elevation )