OculusDiy

javadoc

 

Service page for Oculus Diy

 

More informations :
http://myrobotlab.org/content/my-diy-oculus-rift

Examples:


#file : service/OculusDiy.py edit raw
#########################################
# OculusDiy.py
# more info @: http://myrobotlab.org/service/OculusDiy
#########################################
# start the service
oculusdiy = Runtime.start("oculusdiy","OculusDiy")

port="COM3"

#virtual=1
if ('virtual' in globals() and virtual):
    virtualArduino = Runtime.start("virtualArduino", "VirtualArduino")
    virtualArduino.connect(port)
    
oculusdiy.connect(port)
oculusdiy.mpu6050.attach(oculusdiy.arduino, "0", "0x68")