• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

G:vars and vor

Messages
118
Country
israel
Hi

just have 2 questions:

1:

how can I set var1 to be 1 for 20 sec (if airspeed > 180) and after 20 sec to be 2. ?
what I needs is light which illuminat when airspeed is above 180 kts and flash for 20 sec. after 20 sec illuminat stady without flashing.


2:

do you have formula to demostrate custom vor needle (betwen values -10 and 10) using (A:NAV RADIAL:1,Degrees) and (L:OBS) ?
 
1.
Store (P:ABSOLUTE TIME ZULU, seconds) in a variable at the moment that the airspeed goes from <180 to >180.
Then keep testing if (P:ABSOLUTE TIME ZULU, seconds) is between 20 and 0 seconds greater than the stored time.

2.
First subtract the radial from the OBS.
Then test if the result is greater than 180 or less than -180.
If it is, add or subtract 360.
That gives you the left or right deviation.
To limit it to -10 and 10 you can use the min and max functions.
 
1.
Store (P:ABSOLUTE TIME ZULU, seconds) in a variable at the moment that the airspeed goes from <180 to >180.
Then keep testing if (P:ABSOLUTE TIME ZULU, seconds) is between 20 and 0 seconds greater than the stored time.

2.
First subtract the radial from the OBS.
Then test if the result is greater than 180 or less than -180.
If it is, add or subtract 360.
That gives you the left or right deviation.
To limit it to -10 and 10 you can use the min and max functions.


about vor, work perfrct into "FROM" section, thanks!
but I have problem getting correct needle movement in "TO" section.
is there another formula for "TO" section ?
 
about vor, work perfrct into "FROM" section, thanks!
but I have problem getting correct needle movement in "TO" section.
is there another formula for "TO" section ?

Test if the deviation is more than 90 or less than -90.
Then add or subtract 180.
You may have to invert the sign afterwards.
 
Back
Top