8000 BUG: update flight simulation logic to include burn start time in con… · RocketPy-Team/RocketPy@fe3a243 · GitHub
[go: up one dir, main page]

Skip to content

Commit fe3a243

Browse files
BUG: update flight simulation logic to include burn start time in conditions
1 parent 4cc5d83 commit fe3a243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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