Hi,
I am new to this community. I am using Flock of Birds (FOB=1). Following is the simple scripts I am trying
PHP Code:
import viz
viz.go()
BAUD_FOB = 38400
PORT_FOB = 1
sensor = viz.add('flockofbirds.dls')
def mytimer( num ):
print sensor.getPosition()
viz.callback( viz.TIMER_EVENT, mytimer )
viz.starttimer( 0, 0.5, viz.FOREVER )
The output expected is the dynamic positions of Wanda as I move it. But I am getting same coordinates repeated.
However, if I run the script again, I get the new coordinates <which shows that hardware works fine>, repeating again.
Not sure what is the mistake in the code, I am making.
Someone, kindly help.
-Atul