Sensoren und Motorsteurung hinzugefuegt

This commit is contained in:
Kevin Frantz
2017-04-15 16:43:12 +00:00
parent 3df8ab165a
commit 2e82f991da
10 changed files with 85 additions and 22 deletions

13
sensoren/boolsensor.py Normal file
View File

@@ -0,0 +1,13 @@
"""
Klasse fuer Sensoren welche nur zwei Zustaende besitzen koennen
@author kf
@since 2017-04-15
"""
import RPi.GPIO as GPIO
class Boolsensor(object):
def __init__(self,pin):
self.pin=pin;
GPIO.setup(self.pin, GPIO.IN)
def getValue(self):
return GPIO.input(self.pin)

View File

@@ -1,6 +1,6 @@
#!/bin/bash
#Streamt ein Video auf Vaio
/opt/vc/bin/raspivid -t 0 -o - | nc 192.168.178.30 5001
/opt/vc/bin/raspivid --hflip --vflip -t 0 -o - | nc 192.168.178.30 5001
#Auf Vaio muss
# nc -l -p 5001 | mplayer -fps 31 -cache 1024 -
# ausgefuehert werden