Sign in to follow this  
n4gix

Hobbs Meter (Elapsed Time)

Recommended Posts

In trying to "calibrate" my CJ1's Hobbs gauge, I've run into an interesting situation...It seems that ELAPSED_SECONDSvar.var_value.n is running at "half speed."With the expression:total_time = total_time + (( ELAPSED_SECONDSvar.var_value.n / 100000000 ) / 360 )total_time should increment by 1 every 6 minutes...However, it's not! It is incrementing every 12 minutes... :-mad I have to use:total_time = total_time + (( ELAPSED_SECONDSvar.var_value.n / 100000000 ) / 180 )in order to obtain my needed 1/10th hour increment (every 6 minutes)...Has anyone else ever run into such a strange thing like this?

Share this post


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

Hi Bill, I'm sure you already know this, but if you write your gauge in XML, the hours can be displayed as stored by FS2004.Just a thought,Nick.

Share this post


Link to post
Share on other sites

I can actually fetch that same information in a C gauge (by calling for the XML variable). However, I can't RESET that value to zero via a hidden click spot... ;)Oddly enough, I discovered that the odd behavior I obtained was the result of having two (or more) instances of the same gauge in the panel.cfg. I have the Hobbs on the VC of course (which is needed to properly initialize the gauge when first loaded), but also have it on a "popup window" for 2d panel users.It seems the calculations being done in the same gauge were interfering with one another... :(Now, I've recoded the Hobbs into a "server gauge" and a "remote display." That seems to have cured the odd time keeping problem.Thanks for the note though! :-)

Share this post


Link to post
Share on other sites

Nick, can you tell me how to display the hours stored by FS2004?I don't find the name of the parameter.Thank you very muchAlberto

Share this post


Link to post
Share on other sites

GENERAL_ENG_ELAPSED_TIME:1GENERAL_ENG_ELAPSED_TIME:2etc.

Share this post


Link to post
Share on other sites

Thank you very much Bill. I believe this is a token var that can not be used in xml. Do you know the equivalent parameter in xml. Thanks again.Alberto

Share this post


Link to post
Share on other sites

%((A:GENERAL ENG ELAPSED TIME:1, seconds) 3600 / d 1 % 60 * r flr )%E1 %!05.0f!:%!02.0f!Nick

Share this post


Link to post
Share on other sites

>Thank you very much Bill. I believe this is a token var that>can not be used in xml. Do you know the equivalent parameter>in xml. >Thanks again.>AlbertoAs Nick has shown, the only difference is the absence of the underscore character... :)

Share this post


Link to post
Share on other sites

Thank you Nick, I have just tested it and works fine. Do you know how to display frames per second in XML?Alberto

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