Skip to content

Commit

Permalink
wait 2s after pressing the e-stop before requesting e-stop state
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Nov 27, 2024
1 parent 1d6be1d commit 2c45c59
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Test E-Stop."""


from time import sleep
from typing import List, Union
from hardware_testing.data import ui
from hardware_testing.data.csv_report import (
Expand Down Expand Up @@ -48,6 +48,8 @@ def run(driver: FlexStacker, report: CSVReport, section: str) -> None:
ui.print_header("Trigger E-Stop")
if not driver._simulating:
ui.get_user_ready("Trigger the E-Stop")
# wait a bit before requesting e-stop state
sleep(2)

if not driver.get_estop():
print("E-Stop is not triggered")
Expand Down

0 comments on commit 2c45c59

Please sign in to comment.