Sign in to follow this  
Guest Patrick_Waugh

C gauge question!!! help!

Recommended Posts

Hello one and all,I was wandering if anybody knows how often a c gauge is updated?I need to be know so that i can calculate how fast a plane is travelling in relation to a static object. so for example if a gauge updates 10 times a second and i have calculated a distance i can work out how fast i am travelling in relation to a static object. This is so if i am flying in a perfect orbit around an object, the speed will display as 0.frndd0

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Well first, while a gauge callback is called approximately at 18 hz, this is approximate and varies due to demands on the engine.To determine a "speed" (a scalar) or a velocity (a vector with direction) you would use the sim time ELAPSED_SECONDS and the standard forumlas for position * dt (with respect to time).If you oribt a fix point, your speed/velocity is not going to be zero, unless you are hovering, or you are averaging it over exactly one complete turn.You might want to state what your larger purpose is (such as getting the speed relative to a VOR) as someone may have a better strategy for you.

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