2017-04-15 02:42:23 +02:00
|
|
|
import RPi.GPIO as GPIO
|
|
|
|
from motion import Motion as MOTION
|
2017-04-15 18:43:12 +02:00
|
|
|
from vero import Vero as VERO
|
2017-04-15 02:42:23 +02:00
|
|
|
"""
|
|
|
|
Diese Klasse stellt alle Core-Funktionen (Aktoren, Sensoren) fuer den Erinaco Roboter zur Verfuegung.
|
|
|
|
@author kf
|
|
|
|
@since 2017-04-15
|
|
|
|
"""
|
2017-04-15 18:43:12 +02:00
|
|
|
class Core(MOTION,VERO):
|
2017-04-15 02:42:23 +02:00
|
|
|
def __init__(self):
|
|
|
|
GPIO.setmode(GPIO.BCM);
|
|
|
|
MOTION.__init__(self);
|
2017-04-15 18:43:12 +02:00
|
|
|
VERO.__init__(self);
|
2017-04-16 23:44:12 +02:00
|
|
|
def routine(self): #Routine welche vor jedem Arbeitsschritt ausgefuehrt werden soll
|
|
|
|
self.setSensorValues();
|
2017-04-15 02:42:23 +02:00
|
|
|
def __del__(self):
|
|
|
|
GPIO.cleanup();
|