Thread: Flock of Birds
View Single Post
  #1  
Old 12-19-2007, 01:38 PM
Atul Thakur Atul Thakur is offline
Member
 
Join Date: Oct 2007
Posts: 15
Flock of Birds

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 mytimernum ):
    print 
sensor.getPosition()

viz.callbackviz.TIMER_EVENTmytimer )
viz.starttimer00.5viz.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
Reply With Quote