Hello
I downloaded the LeapDeveloperKit_4.0.0+52238_win to can use 2 devices in my project
but I can't get access to both at the same time
I'm using python 2.7.9 64bit in my windows 10 64 bit
my code to list and connect 2 devices is:
def on_connect(self, controller):
device1 = controller.devices[0]
device2 = controller.devices[1]
if device1.is_valid:
print "Connected"
if device2.is_valid:
print "Connected"
# print some information about device
print (device1)
angle_along_x1 = device1.horizontal_view_angle
print "Device horizontal view angle: ", angle_along_x1
angle_along_z1 = device1.vertical_view_angle
print "Device vertical view angle: ", angle_along_z1
# print some information about device
print (device2)
angle_along_x2 = device2.horizontal_view_angle
print "Device horizontal view angle: ", angle_along_x2
angle_along_z2 = device2.vertical_view_angle
print "Device vertical view angle: ", angle_along_z2
and my result:
Initialized
Connected
Connected Device: S329A012082 v1.7.0
Device horizontal view angle: 2.30383467674
Device vertical view angle: 2.00712871552
max range: 470.0
Invalid Device
Device horizontal view angle: 0.0
Device vertical view angle: 0.0
max range: 0.0
please can someone listed the steps I need to code to let both devices work at the same time
thank you in advance for your suggestions and help