Our Ascension Flock of Birds plug-in now works well with 1 or more birds. The plug-in expects the Flock of Birds system to be in normal address mode and will not work in other modes (plug-in attached in following message).
Vizard parameters are:
NUM_FOB = 1 or 2
PORT_FOB = 1 (default)
BAUD_FOB = 115200 (default)
In normal address mode, you enter a binary number using dip switches 4, 5, 6, 7 to adjust the bird stack to how many birds are present. If only 1 bird is present, then set all to 0. Otherwise, set each bird box according to its sequential number.
Baud rate is set with dips 1,2,3. For the default mode (115.2kbs), leave 1,2,3 ON (which is the DOWN position).
The transmitter should be plugged into the first bird in the chain. The RS-232 null model cable should also come off the first bird in the chain.
When changing bird settings, switch to STBY before changing, then back to FLY after changing.
After Vizard has connected to the bird/s, then the status light will glow red and stay on.
Here's a sample script:
PHP Code:
import viz
viz.go()
NUM_FOB = 2
ball = viz.add('white_ball.wrl')
ball.color(viz.RED)
flock1 = viz.add('flockofbirds.dls')
ball.link(flock1)
ball = viz.add('white_ball.wrl')
ball.color(viz.BLUE)
flock2 = viz.add('flockofbirds.dls')
ball.link(flock2)
viz.add('tut_ground.wrl')
viz.clearcolor(viz.GRAY)
viz.move(0,0,-8)
def onkeydown(key):
#The keyboard button 'key' is being pressed
if key == 'r':
flock1.reset()
flock2.reset()
print 'reset!'
viz.callback(viz.KEYDOWN_EVENT,onkeydown)