External flight modelHi,<br/> I wont use ESP only for graphics rendering and i have external flight model. In input to ESP i have only  alt,lat,lon,Pitch,Bank and Heading. What is best way do it please? I try it via SIMCONNECT_DATA_INITPOSITION but it invite progress dialog.<br/> <br/> THX© 2009 Microsoft Corporation. All rights reserved.Thu, 09 Jul 2009 12:02:33 Z698c4fd3-68b4-4399-9c95-777ad02f0c73http://social.msdn.microsoft.com/Forums/en-US/ESP/thread/698c4fd3-68b4-4399-9c95-777ad02f0c73#698c4fd3-68b4-4399-9c95-777ad02f0c73http://social.msdn.microsoft.com/Forums/en-US/ESP/thread/698c4fd3-68b4-4399-9c95-777ad02f0c73#698c4fd3-68b4-4399-9c95-777ad02f0c73mamuczhttp://social.msdn.microsoft.com/Profile/en-US/?user=mamuczExternal flight modelHi,<br/> I wont use ESP only for graphics rendering and i have external flight model. In input to ESP i have only  alt,lat,lon,Pitch,Bank and Heading. What is best way do it please? I try it via SIMCONNECT_DATA_INITPOSITION but it invite progress dialog.<br/> <br/> THXSat, 06 Jun 2009 21:19:20 Z2009-06-06T21:19:20Zhttp://social.msdn.microsoft.com/Forums/en-US/ESP/thread/698c4fd3-68b4-4399-9c95-777ad02f0c73#d6dc2d7f-0f5c-4d03-a09d-647571bd8357http://social.msdn.microsoft.com/Forums/en-US/ESP/thread/698c4fd3-68b4-4399-9c95-777ad02f0c73#d6dc2d7f-0f5c-4d03-a09d-647571bd8357Tim Gregson [MSFT]http://social.msdn.microsoft.com/Profile/en-US/?user=Tim%20Gregson%20%5bMSFT%5dExternal flight modelYou need to define your own data struct with the variables you need to set, and then use that data struct to set the position and orientation.  Using the INITPOSITION structure, as you've found out, causes the sim to do a partial reset (reloading terrain, AI aircraft, etc) and is designed specifically to set the Initial Position for an object.<br/><br/>Tim<hr class="sig">http://beatlesblog.spaces.live.com/Sun, 07 Jun 2009 18:10:02 Z2009-06-07T18:10:02Zhttp://social.msdn.microsoft.com/Forums/en-US/ESP/thread/698c4fd3-68b4-4399-9c95-777ad02f0c73#acc97d89-6d3c-49e2-9820-d4f3d868e84bhttp://social.msdn.microsoft.com/Forums/en-US/ESP/thread/698c4fd3-68b4-4399-9c95-777ad02f0c73#acc97d89-6d3c-49e2-9820-d4f3d868e84bmamuczhttp://social.msdn.microsoft.com/Profile/en-US/?user=mamuczExternal flight modelDefine my own data structure is not problem, but how set it? Please can you give me some example?<br/> <br/> <br/> THX<br/> <br/> Petr<br/>Mon, 08 Jun 2009 07:17:50 Z2009-06-08T07:17:50Zhttp://social.msdn.microsoft.com/Forums/en-US/ESP/thread/698c4fd3-68b4-4399-9c95-777ad02f0c73#bf8c44cd-f3c9-466b-bbee-ec2283a4ca4ahttp://social.msdn.microsoft.com/Forums/en-US/ESP/thread/698c4fd3-68b4-4399-9c95-777ad02f0c73#bf8c44cd-f3c9-466b-bbee-ec2283a4ca4aJon Hart ______________http://social.msdn.microsoft.com/Profile/en-US/?user=Jon%20Hart%20______________External flight modelFirst, set up your structure definition in ESP: <div><br/></div> <div> <pre> hr = SimConnect_AddToDataDefinition(_hSimConnect,DEFINITION, &quot;Plane Altitude&quot;, &quot;feet&quot;, SIMCONNECT_DATATYPE_FLOAT64, 0.0f, SIMCONNECT_UNUSED); hr = SimConnect_AddToDataDefinition(_hSimConnect,DEFINITION, &quot;Plane Latitude&quot;, &quot;degrees&quot;, SIMCONNECT_DATATYPE_FLOAT64, 0.0f, SIMCONNECT_UNUSED); hr = SimConnect_AddToDataDefinition(_hSimConnect,DEFINITION, &quot;Plane Longitude&quot;,&quot;degrees&quot;, SIMCONNECT_DATATYPE_FLOAT64, 0.0f, SIMCONNECT_UNUSED); hr = SimConnect_AddToDataDefinition(_hSimConnect,DEFINITION, &quot;Plane Heading Degrees True&quot;, &quot;degrees&quot;, SIMCONNECT_DATATYPE_FLOAT64, 0.0f, SIMCONNECT_UNUSED); hr = SimConnect_AddToDataDefinition(_hSimConnect,DEFINITION, &quot;Plane Pitch Degrees&quot;, &quot;degrees&quot;, SIMCONNECT_DATATYPE_FLOAT64, 0.0f, SIMCONNECT_UNUSED); hr = SimConnect_AddToDataDefinition(_hSimConnect,DEFINITION, &quot;Plane Bank Degrees&quot;, &quot;degrees&quot;, SIMCONNECT_DATATYPE_FLOAT64, 0.0f, SIMCONNECT_UNUSED); </pre> .and have a struct for it:</div> <div><br/></div> <div> <pre>struct PLANE_XYZ_HPR { double altitude; double latitude; double longitude; double heading; double pitch; double roll; } _PlanePos;</pre> populate the above, then call</div> <div><br/></div> <div> <pre> res = SimConnect_SetDataOnSimObject(_hSimConnect,DEFINITION, SIMCONNECT_OBJECT_ID_USER, 0, 0, sizeof(_PlanePos),&amp;_PlanePos ); </pre> to set the data.</div> <div><br/></div> <div>I have more code if you want to PM me.</div> <div><br/></div> <div><br/></div> <div><br/></div> <div><br/></div> <div><br/></div><hr class="sig">Regards, JonWed, 17 Jun 2009 18:16:43 Z2009-06-17T18:16:43Zhttp://social.msdn.microsoft.com/Forums/en-US/ESP/thread/698c4fd3-68b4-4399-9c95-777ad02f0c73#0842fea7-a177-4f73-8507-58cc9846aacbhttp://social.msdn.microsoft.com/Forums/en-US/ESP/thread/698c4fd3-68b4-4399-9c95-777ad02f0c73#0842fea7-a177-4f73-8507-58cc9846aacbmamuczhttp://social.msdn.microsoft.com/Profile/en-US/?user=mamuczExternal flight modelThank you it is what I need!!!<br/>Thu, 09 Jul 2009 12:02:28 Z2009-07-09T12:02:28Z