From df4b33008a6c28baae8deb75bb35b8eee7a60d6e Mon Sep 17 00:00:00 2001 From: Daniel Schenk <102045363+DanielPSchenk@users.noreply.github.com> Date: Fri, 26 Jun 2026 11:22:43 +0200 Subject: [PATCH] Increase speed threshold for safety exit check Increase speed threshold for safety exit check to the speed given in the error message --- rotorpy/simulate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rotorpy/simulate.py b/rotorpy/simulate.py index 1552168..b2b59db 100644 --- a/rotorpy/simulate.py +++ b/rotorpy/simulate.py @@ -213,7 +213,7 @@ def safety_exit(world, margin, state, flat, control): """ Return exit status if any safety condition is violated, otherwise None. """ - if np.any(np.abs(state['v']) > 20): + if np.any(np.abs(state['v']) > 100): return ExitStatus.OVER_SPEED if np.any(np.abs(state['w']) > 100): return ExitStatus.OVER_SPIN