Jump to content
The simFlight Network Forums

Priyasloka Arya

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Priyasloka Arya

  1. thanks.

    i tried accordingly , it is working. Here enclosed code snippet

    --------------------------------------------------------

    AI.id=1;

    AI.lat=47.431507;

    AI.lon=237.692002-360;

    AI.alt=432;

    AI.hdg=62697;

    AI.gs=95;

    AI.vs=817;

    strcpy(AI.idATC,"MY PLANE1");

    AI.bState=0x8C;

    AI.com1=0x2010;

    FSobj.Write(0x1F80,sizeof(TCAS_DATA),&AI); //setting autopilot master switch

    strcpy(AI.idATC,"");

    AI.id=5;

    AI.lat=48.431507;

    AI.lon=123.0;

    AI.alt=832;

    AI.hdg=62697;

    AI.gs=95;

    AI.vs=817;

    strcpy(AI.idATC,"MY PLANE2");

    AI.bState=0x8C;

    AI.com1=0x2010;

    FSobj.Write(0x1F80,sizeof(TCAS_DATA),&AI);

    FSobj.Process();

    ---------------------------------------------------

  2. Hi

    I want to simulate multiplayer condition in my desktop for FS2004. I want to emulate traffic server via my own program and want to control the aircrafts (speed, position...)

    Is there any way I could inject traffic data via tcp/udp socket? Is there a format/data structure for multiplayer traffic and where I could find this information?

    As Pete said in other occasions, FSUIPC is not intended to create multiplayer conditions.

    Regards

    Arya

  3. <p>Hi

    I was trying to simulate TCAS traffic on FS2004 using FSUIPC V4.999W and later verifying the TCAS info via Pete's TrafficLook tool.

    I simulated a plane and could see the plane on Traffic look.

    -------------------------------------

    AI.id=0xFFFFFFF5;

    AI.lat=47.431507;

    AI.lon=237.692002-360;

    AI.alt=432;

    AI.hdg=62697;

    AI.gs=95;

    AI.vs=817;

    strcpy(AI.idATC,"N72577");

    AI.bState=0x8C;

    AI.com1=0x2010;

    FSobj.WriteAndProcess(0x1F80,sizeof(TCAS_DATA),&AI);

    -----------------------------------------------------------------------

    AI is a TCAS_DATA data type. Offset is 0x1F80

    I am unable to simulate more planes, i do not know what i am doing wrong.

    Next offset i am choosing 0x1F80+sizeof(TCAS_DATA),&

    Am i missing anything

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.