Ejemplo n.º 1
0
from Orientation import Orientation
from UltraSonicSensor import UltraSonicSensor

sensor = UltraSonicSensor()
value = sensor.getReadings()

orientation = Orientation()
orientationData = orientation.getOrientation()
orientationData.append(value)
print orientationData
Ejemplo n.º 2
0
from UltraSonicSensor import UltraSonicSensor

sensorLeft = UltraSonicSensor(17, 27)
valueLeft = sensorLeft.getReadings()
sensorRight = UltraSonicSensor(8, 7)
valueRight = sensorRight.getReadings()

print [valueLeft, valueRight]