Spaces:
Running
Running
drenayaz commited on
Commit ·
f392845
1
Parent(s): 133f6f6
fix end of the app
Browse files- wake_me_up/main.py +4 -5
wake_me_up/main.py
CHANGED
|
@@ -830,11 +830,10 @@ class WakeMeUp(ReachyMiniApp):
|
|
| 830 |
def _park_robot(self, reachy_mini: ReachyMini) -> None:
|
| 831 |
"""Ensure motors are enabled when exiting app (to prevent robot from falling)"""
|
| 832 |
try:
|
| 833 |
-
|
| 834 |
-
|
| 835 |
-
|
| 836 |
-
|
| 837 |
-
print("Motors enabled for safe exit")
|
| 838 |
except Exception as e:
|
| 839 |
print(f"Failed to enable motors on exit: {e}")
|
| 840 |
|
|
|
|
| 830 |
def _park_robot(self, reachy_mini: ReachyMini) -> None:
|
| 831 |
"""Ensure motors are enabled when exiting app (to prevent robot from falling)"""
|
| 832 |
try:
|
| 833 |
+
print("Parking robot before exit...")
|
| 834 |
+
# Enable motors safely (idempotent - safe to call even if already on)
|
| 835 |
+
self._safe_enable_motors(reachy_mini)
|
| 836 |
+
print("Motors enabled for safe exit")
|
|
|
|
| 837 |
except Exception as e:
|
| 838 |
print(f"Failed to enable motors on exit: {e}")
|
| 839 |
|