WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   IS-900 Wand Data (https://forum.worldviz.com/showthread.php?t=3750)

Kaminski 05-18-2011 09:02 AM

IS-900 Wand Data
 
Hi All,
I am unable to retrieve button data from my IS-900 Simtracker wand. When using the following commands:

Code:

isense = viz.add('intersense.dle')
wandTracker = isense.addTracker(port=4,station=2)
def printData():
    print wandTracker.getData()
vizact.onkeydown('p',printData)

I only get two datapoints in the list, such as '[127.0,37.0]' -- just the joystick data. Is there any way to make sure that I have the most recent version of intersense.dle? I suspect I may need to update the intersense firmware, as it is probably pretty old, but want to exhaust any other options first.

farshizzo 05-18-2011 09:15 AM

You should be able to use the standard extension sensor button methods for accessing the wand button data.

From the Sensor basics documentation page:

Code:

.buttonState() - Get the state of the buttons as a bit flag.
 
.buttonCount() - Get the number of buttons on sensor.
 
.isButtonDown(button) - Returns whether the specified button is currently down.
 
viz.SENSOR_DOWN_EVENT - Called when a sensor button is pressed.
 
viz.SENSOR_UP_EVENT - Called when a sensor button is released.


Kaminski 05-18-2011 11:15 AM

Extension sensor methods do the trick, thanks.


All times are GMT -7. The time now is 07:23 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC