WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Flock of Birds (Only Position Tracking working? No Orientation?) (https://forum.worldviz.com/showthread.php?t=1473)

TheLostBrain 05-04-2008 04:46 PM

Flock of Birds (Only Position Tracking working? No Orientation?)
 
Hi.

I just downloaded the WorldViz demo and I'm trying to test out the Ascension Technology Flock of Birds Support.

I'm using an ERT so I set the ERC (via dips) as the first bird in the chain..and the bird with the sensor as the second (serial connection is coming from the ERC).

Tested this in Winbird...everything working great... full 6dof!


Tested the following in WorldViz... and I'm only getting position information (x,y,z)...no orientation (yaw,pitch, roll)


import viz
viz.go()
viz.add( 'tut_ground.wrl' )

PORT_FOB = 1
NUM_FOB = 2

ert = viz.add('flockofbirds.dls')
sensor = viz.add('flockofbirds.dls')

viz.link(sensor,viz.MainView)


Am I doing something wrong?

Thanks for any help!

farshizzo 05-05-2008 12:19 PM

What dip switch settings are you using?

TheLostBrain 05-05-2008 04:02 PM

Quote:

Originally Posted by farshizzo (Post 5516)
What dip switch settings are you using?

ERC: 11100010
FOB: 11100100

Thanks

farshizzo 05-05-2008 06:31 PM

I think your addresses might be need to be changed. Can you try the following dip switch settings (be sure to repower the device after changing it):

ERC: 11100001
FOB: 11100010

TheLostBrain 05-06-2008 03:27 PM

Quote:

Originally Posted by farshizzo (Post 5523)
I think your addresses might be need to be changed. Can you try the following dip switch settings (be sure to repower the device after changing it):

ERC: 11100001
FOB: 11100010


Dip switch 8 is for FLY/TEST mode.
(0/Off = Fly, 1/On = Test)

Doesn't correspond to the Bird Addressing...

Any other ideas?

Is there some way to test and see the orientation data that Vizard is getting from the bird?

Thanks again

farshizzo 05-06-2008 07:46 PM

My mistake, your original settings should be fine then. Not sure what the problem could be. We and other customers have successfully used the ERT with our plugin. I remember having a problem with it once though and we had to reset the device, which is different than repowering it. I forget what the reset procedure is, but if you know then you might want to try it out.

Other than linking the sensor to an object, you could manually retrieve and print the data. Example:
Code:

def printEuler():
    print sensor.getEuler()
vizact.onkeydown(' ',printEuler)


TheLostBrain 05-10-2008 08:39 AM

Fixed! :D

Finally had a chance to sit down with this again...and managed to get it fixed!
Figured I'd come back and share for anyone else that may wind up experiencing the same issue.


The problem was caused by the bird being in the wrong "mode".
I had previously been playing around in cbird (a dos based utility from Ascension) and the last mode I was testing was "Position".

The issue was resolved when I simply went back into cbird and chose "Position/Angles". As soon as I exited cbird and came back in to Vizard everything was working correctly. :D


So for those who may not know their way around cbird here are the exact key presses you'd want to do:
  1. 1 (For 115200 baud)
  2. 0 (For no further changes and to enter the main menu)
  3. 15 (For Change Value)
  4. 16 (For FBB Auto Config)
  5. 2 (For the number of birds...this may be different in your case)
  6. Enter Enter (To get out of the status report)
  7. 5 (For Position/Angles)
  8. 1 (For Continuous Point Mode)
  9. N (To not save ASCII data)
  10. Enter Enter (To get back to the main menu)
  11. 0 (To Quit)

Once you've done this simply go back into Vizard and Run your script, etc. and everything should now be working correctly. ;)

FYI: cbird, the user manual and everything else for the Flock of Birds can be obtained here:
ftp://ftp.ascension-tech.com/PRODUCT...k_of_Birds.zip


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

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