Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rocketpy/simulation/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,7 @@ def u_dot(self, t, u, post_processing=False): # pylint: disable=too-many-locals
# Determine lift force and moment
R1, R2, M1, M2, M3 = 0, 0, 0, 0, 0
# Determine current behavior
if t < self.rocket.motor.burn_out_time:
if self.rocket.motor.burn_start_time < t < self.rocket.motor.burn_out_time:
# Motor burning
# Retrieve important motor quantities
# Inertias
Expand Down Expand Up @@ -1788,7 +1788,7 @@ def u_dot_generalized(self, t, u, post_processing=False): # pylint: disable=too
speed_of_sound = self.env.speed_of_sound.get_value_opt(z)
free_stream_mach = free_stream_speed / speed_of_sound

if t < self.rocket.motor.burn_out_time:
if self.rocket.motor.burn_start_time < t < self.rocket.motor.burn_out_time:
drag_coeff = self.rocket.power_on_drag.get_value_opt(free_stream_mach)
else:
drag_coeff = self.rocket.power_off_drag.get_value_opt(free_stream_mach)
Expand Down