Brice,
Glad you were able to get your own stuff working.
The low level interface to the device was purposely hidden in our code, so
that we could allow different types of devices to be used with applications
without having to change the code. All you have to do is switch out the
properties files.
The values of the X, Y, Z in space and XR, YR, and ZR are all values that
come directly from the bird itself. They
are modified, depending on which Sensor mods you have in the properties
file. For example,
BirdAngleDevice.Sensor1.ZOffset=60
BirdAngleDevice.Sensor1.YOffset=-10
BirdAngleDevice.Sensor1.YROffset=90
BirdAngleDevice.Sensor1.YRInversion=true
BirdAngleDevice.Sensor1.ZRInversion=true
Adds 60 to the Z offset sensor value, subtracts 10 from the Y offset value,
applies a 90 degree rotation to the Y Rotation value, and inverts the
incoming Y and Z rotations. Leaving these out of the properties file will
not change any of the values that are coming from the device. I think the
rotation values are all in radians.
I'm not sure if the device can be reset at this point, since my lab has
moved buildings, and I don't have everything set up yet.
Sorry that this didn't work out for you. Hope that your Flock stuff will
be allowed to be posted to the Web. If so, drop me a line, and I'll see
that it's added as a resource at www.j3d.org.
Steve
At 11:36 AM 7/11/2000 -0700, you wrote:
>Steve,
>
>Well I tried what we discussed about and finally I was abble to have some
>result without error message...but they still had some troubles. I have
>partially succeeded in using the software, but a combination of a lack
>of documentation and of configuration flexibility has stymied us.
>
>First, it doesn't work in standalone mode at all. When we connected a 2nd
>Bird
>and set up "Flock mode", the demo software worked and our implementation also
>was able to get data. We did not intend to use more than one magnetic sensor,
>so this is a real problem.
>
>Second, it is unclear about what values are returned in the X,Y,Z,XR,YR,ZR
>fields. By inspection, it appears that the position results are
>normalized to a
>cube of +/- 1.0 within the device's 36in active area. It is not clear
>what the
>range or interpretation of the XR,YR,ZR data is - possibly they are in
>radians.
>
>Third, there is no way, apparently, to reset the Bird to be used again.
>Once the test program or our program exits, the Bird control unit must be
>set to
>standby and back to "Fly" in order to be able to use it again!
>
>There is apparently no way to access the current status thru this
>BirdAngleDevice or BirdDriver interface.
>
>Finally, we wanted to retrieve the position and matrix rather than the
>position
>and angles. The BirdDriver device apparently has a method to enable that, but
>there doesn't seem to be a way to retrieve the information within the
>interface.
>
>If there were even good examples of using all of the methods, we might be able
>to get somewhere. BirdAngleDevice overrides serialEvent but doesn't indicate
>what it would be used for since it is a low level indication of serial port
>activity.
>If the documentation was clearer on the use of the BirdDriver, possibly we
>could
>do some of this setup directly.
>
>Anyway I have finally managed to use Flock of Bird with my Java code using
>comm API package.
>
>Regards,
>Brice
>
>Steve Pietrowicz wrote:
>
> > Brice,
> >
> > As we previously discussed in e-mail, this should work fine with one bird.
> > All you should have to do is comment out the second bird stuff from the
> > WandVision program and set the appropriate info in the properties file,
> > examples of which are under the display/properties directory. I suggested
> > that you try this, but never got a response about what happened. What
> > error were you getting? I'd really like to know, because many other people
> > have gotten this to work.
> >
> > Steve
> >
> > At 08:15 AM 7/11/2000 -0700, Brice Deregnaucourt wrote:
> > >Hi Cedric,
> > >I use Flock of Birds with Java3D for a medical application. At the
> begining,
> > >I tried to use PortFolio package. You can find some doc at :
> > >http://www.ncsa.uiuc.edu/~srp/Java3D/portfolio/1.3beta3/docs/index.html
> > >and look at class "BirdAngleDevice" and "BirdDriver".
> > >I use only one Bird and it seems that this package don't work very
> well with
> > >only one Bird....you should have less troubles with three.
> > >Finally, I use methodes and class of comm API (anyway you have to install
> > >this even if you choose to use PortFolio package)...doc is at :
> > >http://www.javasoft.com/products/javacomm/javadocs/Package-javax.comm.html
> > >
> > >Hope that help, let me know if you need some
> > >code example (my mail is [EMAIL PROTECTED]).
> > >Regards, Brice
> > >
> > >
> > >
> > >Brunner Cedric wrote:
> > >
> > > > Dear all,
> > > >
> > > > I'm trying to use Flock of Birds (three) with Java3D. I'm at
> > > > the really beginning and don't know how to get through.
> > > >
> > > > Has someone already do that? If yes, some hints are welcome.
> > > > Which classes did you use, how you code it, ...
> > > >
> > > > Thanks a lot
> > > >
> > > > Brunner Cédric
> > > >
> > > >
> ===========================================================================
> > > > To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> > > > of the message "signoff JAVA3D-INTEREST". For general help, send
> email to
> > > > [EMAIL PROTECTED] and include in the body of the message "help".
> > >
> > >=======================================================================
> ====
> > >To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > >of the message "signoff JAVA3D-INTEREST". For general help, send email to
> > >[EMAIL PROTECTED] and include in the body of the message "help".
> >
> > ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff JAVA3D-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".