June 14, 200718 yr 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
June 14, 200718 yr Moderator 18Hz Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
June 15, 200718 yr 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.
Create an account or sign in to comment