Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Timing a boolean??

Featured Replies

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

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.

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 
 

 

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

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.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.