From: "Christian Mayer" <[EMAIL PROTECTED]>
> Norman Vine wrote:
> > Andy Ross writes:
> > >But note that there is lots of opportunity for compression here; it's
> > >just that dumb general-purpose algorithms like "zip" are unable to
> > >find them for a single packet.  A few ideas that occur to me:
> > >
> > >+ Position needn't send three full 64 bit doubles, since the position
> > >  will always be "near" the last one.  Sending deltas will work (if
> > >  you are careful to handle potential bugs like successive round-off
> > >  errors), as will (reliably!) transmitting a "zone" coordinate every
> > >  so often and sending packets as deltas from that.  If the updates
> > >  are always within ~100m of the last position, you can get each
> > >  position coordinate down to 15 bits or so and still achieve
> > >  millimeter precision.
> > 
> > Yup.. using deltas should be a big win
> 
> Yes, but make sure that you deal with the precision loss smoothly.
> 
> E.g. x-Position (in base 10), every 10 steps you'll transmit the real
> position and no delta:
> 
>             data         data 
>    Source   to transmit: transmitted:  result:
>  1. 100.00   100.00       100.0         100.00

And what happens with deltas and positions when you will lose UDP 
packets ? How will you restore the correct position or orientation ?
Perhaps, from time to time, it will be good to send absolute positions
to resynch.

-Fred




_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to