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.

Asynchronous Intermittence

Featured Replies

Hey everyone!I have many elements that blink when below minumuns, when out of tolerance or when flyin on them for example. The problem is if two blink they blink at the same rhythm. I'm using (P:Local time, seconds) 1 % 0.33 / 1 % near for the intermittence. Do you know how to make each element blink at its own time not synchronouslly?Javier

Javier, Just change the code for each part you want blinking differently --- Copied from past AVSIM post.

With this universal code it's very simple to control not only the length of the cycle but the frequency of the blink itself:Pseudocode:<Visble>(P:Absolute time,seconds) "seed" % "blink lapse" > !</Visible>The seed parameter is the total length of the blinking cycle. For example, if you want something to blink on every second, you use 1, if you want it blink every half a second, use 0.5 , every two seconds, 2 ,etc.For each seed, you can determine how long would be the duration of both the visible and invisible part.Then:(P:Absolute time,seconds) 1 % 0.5 > ! ---> this will make the visible and invisible parts of half a second both.(P:Absolute time,seconds) 1 % 0.7 > ! ---> this will make the visible part 70% of the cycle (0.7 secs) and invisible parts of 30 % (0.3 secs).(P:Absolute time,seconds) 0.5 % 0.25 > ! ---> this will make the visible and invisible parts a quarter of second both.You can invert the cycle by removing the "!" char.

Roman

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

 

  • Author

Hi Roman!I'm very much thank you, I'm gonna review the math.Javier

  • Author

I think the issue was I was using the same "clock" (P:Local time, seconds) for the intermittence, rather than one for each element causing the sync blinking, not bad for the olimpyc ladies tha swim but in flight simulator taht looks weird : ). Roman The code I was using and your have this problem, it can be solved uisng (P:Local time, seconds) (L:NavGSActTime, number) % 0.2 / 1 % near where the L:var is the time in secs the G/S deviation is out of approach perfomence limits. I wonder if there could be another way to unsync the intermittence whit no need to add a L:var, whit just changing the math in the original calculation?Javier

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.