update
This commit is contained in:
1 parent
3ef209313b
commit
67e253ccb6
2 files changed
+28
-15
No files matched your search
+13
-12
@@ -7,18 +7,19 @@ from robot_inc import *
|
|||||||
#- ENDE DER SYSTEMEINSTELLUNGEN
|
#- ENDE DER SYSTEMEINSTELLUNGEN
|
||||||
|
|
||||||
|
|
||||||
linkeFlasche=GPIO_2
|
fussMotor=GPIO_2
|
||||||
rechteFlasche=GPIO_3
|
beinMotor=GPIO_3
|
||||||
|
|
||||||
# Rezept für Apfelsaft
|
# fussMotor einstellen auf 0 Grad - Position
|
||||||
gpio_on (linkeFlasche)
|
gpio_drive (fussMotor,0)
|
||||||
sleep (0.5)
|
#sleep (0.5)
|
||||||
gpio_off (linkeFlasche)
|
|
||||||
|
|
||||||
gpio_on (rechteFlasche)
|
# beinMotor einstellen auf 0 Grad - Position
|
||||||
sleep (1.5)
|
gpio_drive (beinMotor,0)
|
||||||
gpio_off (rechteFlasche)
|
#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)
|
|
||||||
+15
-3
@@ -1,4 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo starte robot
|
Aufruf=$(basename $0 .sh)
|
||||||
cd ~/robotik-WS-2022
|
|
||||||
sudo ./robot-a.py
|
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
|
||||||
Reference in new issue
Block a user