Hi Petr,
Thanks alot for the info. I can now generate MP packets from Mathworks
Simulink.

On Thu, May 29, 2008 at 9:12 AM, Gotthard,Petr <[EMAIL PROTECTED]>
wrote:

>  Hello,
> the MP packets are created in src/MultiPlayer/multiplaymgr.cxx, so you may
> want to start there.
>
> The values are encoded in FGMultiplayMgr::SendMyPosition(). Position,
> velocity and acceleration is send always. In addition to that, the custom
> properties listed in sIdPropertyList are encoded. The list is hardcoded in
> multiplaymgr.cxx. To reduce the network traffic just comment out all
> the entries (except the last one).
>
> If you need more help, just drop me an e-mail.
>
> Best Regards
> Petr
>
>  ------------------------------
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Bahadir
> ARMAGAN
> *Sent:* Thursday, May 29, 2008 4:38 AM
> *To:* flightgear-users@lists.sourceforge.net
> *Subject:* [Flightgear-users] How to generate MP packet
>
> Hi all,
> I'm new to flightgear and I need to convert (for some simulink dynamic
> models) custom position to MP packet. I have sniffed MP packets for starting
> point and I saw that they are really huge(approx 500byte). And I took a look
> at fgms-0.9.11 sources but I still couldn't figure out how to consturct a
> packet.
>
> Is there any tutorial or simple source code or recommentded reading  for
> constructing MP packets? Any kind of help will be appreciated.
>
> Thanks,
>
> B.Armagan
>
>
>
> An idea for future developments:
> Isn't it possible to include only position(+attitude +motion) data in MP
> packets and send Player and model info only every two seconds as an other
> packet type (say Multiplayer user info) for less network traffic.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Flightgear-users mailing list
> Flightgear-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-users
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to