Jump to content
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?


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

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! :-)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest a123456

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.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest a123456

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

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


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest a123456

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  

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