From 67e253ccb675c07bb0a479cbdc0c0240ef2d00f1 Mon Sep 17 00:00:00 2001 From: Kinder College Teilnehmer Date: Sat, 7 Jan 2023 07:31:37 +0100 Subject: [PATCH] update --- robot-keeper.py | 25 +++++++++++++------------ robot-start.sh | 18 +++++++++++++++--- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/robot-keeper.py b/robot-keeper.py index c63ac4a..12014b4 100755 --- a/robot-keeper.py +++ b/robot-keeper.py @@ -7,18 +7,19 @@ from robot_inc import * #- ENDE DER SYSTEMEINSTELLUNGEN -linkeFlasche=GPIO_2 -rechteFlasche=GPIO_3 +fussMotor=GPIO_2 +beinMotor=GPIO_3 -# Rezept für Apfelsaft -gpio_on (linkeFlasche) -sleep (0.5) -gpio_off (linkeFlasche) +# fussMotor einstellen auf 0 Grad - Position +gpio_drive (fussMotor,0) +#sleep (0.5) -gpio_on (rechteFlasche) -sleep (1.5) -gpio_off (rechteFlasche) +# beinMotor einstellen auf 0 Grad - Position +gpio_drive (beinMotor,0) +#sleep (0.5) + +# fussMotor einstellen auf zufallige (gueltige) - Position +winkel=zufall(27-113) +gpio_drive (fussMotor,0) +#sleep (0.5) -# oder in einer Funktion -#gpio_on_for (linkeFlasche, 0.5) -#gpio_on_for (rechteFlasche, 1.5) diff --git a/robot-start.sh b/robot-start.sh index 9c37c49..4aa0ab0 100755 --- a/robot-start.sh +++ b/robot-start.sh @@ -1,4 +1,16 @@ #!/usr/bin/env bash -echo starte robot -cd ~/robotik-WS-2022 -sudo ./robot-a.py +Aufruf=$(basename $0 .sh) + +case $Aufruf in + robot-start-bar) + echo starte robot bartender + cd ~/robotik-WS-2022 + sudo ./robot-bartender.py + ;; + robot-start-trainer) + echo starte robot bartender + cd ~/robotik-WS-2022 + sudo ./robot-keeper.py + ;; + + esac