Sign in to follow this  
Guest ridgell

looking for a HUD guru who is friends with Pythagoras

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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

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