Jump to content
Sign in to follow this  
Guest HC001ST - Stick

Timing a boolean??

Recommended Posts

Guest Skymed

I need to know, in XML, how long the starter is active, in seconds.In other wordssomething like: (A:General eng1 starter, bool) if{ (P:absolute tme,seconds) (>L:secs,number) } But this gives me, as you guys know, weird and wonderful numbers . What I really need is to know how long the starter has been active, store that value in seconds, and then reset that value to zero when the starter is not active.Any Hints?Steve

Share this post


Link to post
Share on other sites
Guest HC001ST - Stick

Far easier to setup your own XML var counter, and then create a countdown. The timing of this will be dependent on the gauge update choosen, and framerate.Alternatively, you could get the actual time for the FS vars and use that to "time" your starter.

Share this post


Link to post
Share on other sites

Hi Steve,maybe this can help,, not tested (A:General eng1 starter, bool) if{ (P:absolute tme,seconds) (L:secs_start,number) - (>L:secs,number) } els{ (P:absolute time,seconds) (>L:secs_start,number) 0 (>L:secs,number) }From past posts it looking like your doing hot starts and starter fails ??? COOL!Regards,Roman(KGRB)http://home.new.rr.com/spokes2112/images/Image2.gif


20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Share this post


Link to post
Share on other sites
Guest Skymed

Thanks for the suggestions guys. I chose the easy way out: (A:General eng1 starter, bool) if{ (L:Timestart,enum) 1 + (>L:Timestart,enum) } els{ 0 (>L:Timestart,enum) } Works like a charm :-))Steve

Share this post


Link to post
Share on other sites
Guest HC001ST - Stick

Oh, ok. Now I see what you were going for. I knew it had something to do with the start procedure, but I was thinking you were timing something else.Yeah, once you got Update, easy enough.

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