File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
clearpath_tests/clearpath_tests Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ def run_ui(self):
141
141
self .estop_engaged is None and
142
142
(self .get_clock ().now () - start_time ) < timeout
143
143
):
144
- time . sleep ( 0.1 )
144
+ pass
145
145
146
146
if self .estop_engaged is None :
147
147
results .append (ClearpathTestResult (
@@ -219,7 +219,10 @@ def run_ui(self):
219
219
if safe_to_drive :
220
220
# wait 2s after clearing the e-stop to allow CAN connections to come back up
221
221
# if needed; this affects Ridgeback primarily
222
- time .sleep (2.0 )
222
+ timeout = Duration (seconds = 2 )
223
+ start_time = self .get_clock ().now ()
224
+ while self .get_clock .now () - start_time < timeout :
225
+ pass
223
226
224
227
self .command_wheels ()
225
228
user_input = self .promptYN ('Did the wheels rotate?' )
You can’t perform that action at this time.
0 commit comments