Skip to content

Commit

Permalink
ENH: get hAGL from barometric_height
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusStano authored and Gui-FernandesBR committed Jan 20, 2024
1 parent 5c1267f commit f301352
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rocketpy/simulation/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit f301352

Please sign in to comment.