Jump to content
Sign in to follow this  
Guest ridgell

looking for a HUD guru who is friends with Pythagoras

Recommended Posts

Guest ridgell

you can get angle,distance,and bearing to next way point or to a nav station. seems like someone would have used pythagoras to id the next wp on a hud...but i cant find one to steal....ummm borrow.perhaps a generous soul will show us remedial math types how it is done?

Share this post


Link to post
Share on other sites

Hi,This is experimental.It moves the next waypoint and ident to the HUD center: ("center of screen")(A:GPS IS ACTIVE WAY POINT,bool) (A:GPS DRIVES NAV1,bool) and %((A:GPS WP NEXT ID,string))%!s!% (A:GPS WP DISTANCE,nmiles) (>L:DME,nmiles) (A:GPS WP TRUE REQ HDG,radians) (A:GPS GROUND TRUE HEADING,radians) - pi 2 / + pi + (>L:rad,radians) (L:rad,radians) sin (L:DME,nmiles) *(L:rad,radians) cos (L:DME,nmiles) * (L:rad,radians) sin (L:DME,nmiles) * (L:rad,radians) cos (L:DME,nmiles) * Hope you can do something with it,Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites
Guest ridgell

wow! thanks.i will give it a test run...i was thinking i needed to acount for pitch and stuff but while reading your code i realized all it needs is ill respond on results, suprised it did not get more attention.you are the guru!

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