Skip to content

Commit

Permalink
ENH: automatically disable time overshoot for controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusStano committed Apr 25, 2024
1 parent f60c53b commit 67515f6
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 @@ -1218,11 +1218,9 @@ def __init_controllers(self):
self._controllers = self.rocket._controllers[:]
if self._controllers:
if self.time_overshoot == True:
self.time_overshoot = False
warnings.warn(
"time_overshoot is set to True, but controllers are present. "
"Controllers will not work properly. "
"Consider setting time_overshoot=False in the Flight object "
"to use controllers."
"time_overshoot has been set to False due to the presence of controllers. "
)
# reset controllable object to initial state (only airbrakes for now)
for air_brakes in self.rocket.air_brakes:
Expand Down

0 comments on commit 67515f6

Please sign in to comment.