Jump to content
Sign in to follow this  
GHD

Default power pylons.

Recommended Posts

I am writing a program to assist in placing default pylons by specifying the end points of straight runs.I understand that in order to align the arms of the pylon one needs to add 90 degrees to the heading (of the power line). I have created two L-shaped runs of pylons, East then North and South then West. The first one works fine, but the corner of the second one is wrong. The angles for the first one are 180 for the first leg, 135 for the corner and 90 for the second leg. This displays correctly. The angles for the second one are 270 for the first leg, 225 for the corner and 180 for the second leg. When displayed, the corner pylon is 90 degrees out. I have attached the XML file, can any XML (or default pylon) expert please help me? Georgehttp://forums.avsim.net/user_files/118197.zip

Share this post


Link to post
Share on other sites

Hello George,I have taken a look at your code and see nothing wrong, although the heading of the objects seems rather strange.Perhaps an image would help to understand the problem?Best regards.Luis

Share this post


Link to post
Share on other sites

Hi Luis,Thank you for your response.The problem was that I was using a formula to calculate the heading based upon two lat/long pairs. Unfortunately, the formula assumed that longitudinal values were positive in a westerly direction. Having negated my longitudes, the program works fine.The layout of the pylons should have been: - - - - -||||||||||but the corner pylon was oriented /.Best regards,George

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...