Jump to content
Sign in to follow this  
phjvh

xml latitude/longitude

Recommended Posts

Hi,Solved all kinds of problems, see before.But i cannot produce an xml-code for aircraft position, ADIRS(long./lat.)Can someone help me?phjvh

Share this post


Link to post
Share on other sites

I tried to find the archived post in this but couldn't find it.. These code snippets courtesy of Arne Bartels:2 Versions.. %((A:PLANE LATITUDE, degrees) d 0 >= s0 r abs d 3600 * 60 % r d 60 * 60 % flr r flr 'N' 'S' l0 ? )%!s!%!02.0f!°%!02.0f!'%!02.0f!"%((A:PLANE LONGITUDE, degrees) d 0 >= s0 r abs d 3600 * 60 % r d 60 * 60 % flr r flr 'E' 'W' l0 ? )%!s!%!03.0f!°%!02.0f!'%!02.0f!"%((A:PLANE LATITUDE, degrees) d 0 >= )%{if}%N%{else}%S%{end}%( abs d flr )%!02d!°%( 1 % 60 * d flr )%!02d!'%( 1 % 60 * )%!02.0f"%((A:PLANE LONGITUDE, degrees) d 0 >= )%{if}%E%{else}%W%{end}%( abs d flr )%!03d!°%( 1 % 60 * d flr )%!02d!'%( 1 % 60 * )%!02.0f"Regards,Roman[link:www.packers.com]GREEN BAY PACKERS][/i :-ukliam :-beerchug


20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Share this post


Link to post
Share on other sites

hithanks knew something about the code , but cannot make the gaugehelp!!??jan

Share this post


Link to post
Share on other sites

HiBy the way,This is the codetried the others toodidn't workhelp%((A:PLANE LATITUDE, degrees) d 0 >= )%{if}%N%{else}%S%{end}%( abs d flr )%!02d!

Share this post


Link to post
Share on other sites

HiYou are marvelous!It works allright!Until the next problem.jan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...