Files
robotik-WS-2022/robot-keeper.py
T
2023-01-11 20:50:08 +01:00

26 lines
468 B
Python
Executable File

#!/usr/bin/env python2
#-*- coding:utf-8 -*-
import sys
sys.path.append("inc")
from robot_inc import *
#- ENDE DER SYSTEMEINSTELLUNGEN
fussMotor=GPIO_27
beinMotor=GPIO_17
# fussMotor einstellen auf 0 Grad - Position
gpio_drive (fussMotor,0)
#sleep (0.5)
# 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,winkel)
#sleep (0.5)