8000 BUG: update flight simulation logic to include burn start time (#778) · RocketPy-Team/RocketPy@81449d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 81449d4

Browse files
BUG: update flight simulation logic to include burn start time (#778)
* BUG: update flight simulation logic to include burn start time in conditions * DEV: updates changelog
1 parent 4cc5d83 commit 81449d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Attention: The newest changes should be on top -->
4040

4141
### Fixed
4242

43-
-
43+
- BUG: update flight simulation logic to include burn start time [#778](https://github.com/RocketPy-Team/RocketPy/pull/778)
4444

4545
## [v1.8.0] - 2025-01-20
4646

rocketpy/simulation/flight.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ def u_dot(self, t, u, post_processing=False): # pylint: disable=too-many-locals
14511451
# Determine lift force and moment
14521452
R1, R2, M1, M2, M3 = 0, 0, 0, 0, 0
14531453
# Determine current behavior
1454-
if t < self.rocket.motor.burn_out_time:
1454+
if self.rocket.motor.burn_start_time < t < self.rocket.motor.burn_out_time:
14551455
# Motor burning
14561456
# Retrieve important motor quantities
14571457
# Inertias
@@ -1788,7 +1788,7 @@ def u_dot_generalized(self, t, u, post_processing=False): # pylint: disable=too
17881788
speed_of_sound = self.env.speed_of_sound.get_value_opt(z)
17891789
free_stream_mach = free_stream_speed / speed_of_sound
17901790

1791-
if t < self.rocket.motor.burn_out_time:
1791+
if self.rocket.motor.burn_start_time < t < self.rocket.motor.burn_out_time:
17921792
drag_coeff = self.rocket.power_on_drag.get_value_opt(free_stream_mach)
17931793
else:
17941794
drag_coeff = self.rocket.power_off_drag.get_value_opt(free_stream_mach)

0 commit comments

Comments
 (0)
0