From dd667fdb326cda10f08d825be7cef5394a2cf9c0 Mon Sep 17 00:00:00 2001 From: BreizhHardware Date: Sat, 30 Mar 2024 12:31:32 +0100 Subject: [PATCH] Add return to the starting position if SERGE crash --- startup-test.sh | 4 ++++ startup.sh | 4 ++++ test/test5.sh | 3 +++ 3 files changed, 11 insertions(+) create mode 100644 test/test5.sh diff --git a/startup-test.sh b/startup-test.sh index 17568bf..567ffd7 100644 --- a/startup-test.sh +++ b/startup-test.sh @@ -39,3 +39,7 @@ monitor_ihm & # Attendre que tous les programmes se terminent wait + +# Retourner à la position de départ +echo "Put SERGE back in the starting position" +/mnt/win/Users/BreizhHardware/Nextcloud/Programation/C++/Modelec/Initialisation/test/test5.sh \ No newline at end of file diff --git a/startup.sh b/startup.sh index 83813b4..a297e8a 100644 --- a/startup.sh +++ b/startup.sh @@ -39,3 +39,7 @@ monitor_ihm & # Attendre que tous les programmes se terminent wait + +# Retourner à la position de départ +echo "Put SERGE back in the starting position" +/home/modelec/serge/starting-position \ No newline at end of file diff --git a/test/test5.sh b/test/test5.sh new file mode 100644 index 0000000..9fd16ef --- /dev/null +++ b/test/test5.sh @@ -0,0 +1,3 @@ +echo "Return to the starting position" +wait 1 +echo "SERGE is back in the starting position" \ No newline at end of file