Skip to content

Commit 67515f6

Browse files
committed
ENH: automatically disable time overshoot for controllers
1 parent f60c53b commit 67515f6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rocketpy/simulation/flight.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,11 +1218,9 @@ def __init_controllers(self):
12181218
self._controllers = self.rocket._controllers[:]
12191219
if self._controllers:
12201220
if self.time_overshoot == True:
1221+
self.time_overshoot = False
12211222
warnings.warn(
1222-
"time_overshoot is set to True, but controllers are present. "
1223-
"Controllers will not work properly. "
1224-
"Consider setting time_overshoot=False in the Flight object "
1225-
"to use controllers."
1223+
"time_overshoot has been set to False due to the presence of controllers. "
12261224
)
12271225
# reset controllable object to initial state (only airbrakes for now)
12281226
for air_brakes in self.rocket.air_brakes:

0 commit comments

Comments
 (0)