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

Radio Com XML problem

Messages
39
Country
france
Hi,
i'm developping a gauge for radio com and i have a problem with variables set.
on the gauge there's a 4 position switch which is dedicated to fixed frequencies and 1 position for manual selection. this one is saved in variable and called back when switched to its position after switching to fixed frequencies...
the code i use for changing the frequency is (for example for whole dec)
Code:
(L:SELFREQ) 0 == if{ (>K:COM_STBY_RADIO_SWAP)
		 (>K:COM_RADIO_WHOLE_DEC)
		 (>K:COM_STBY_RADIO_SWAP)
		 (A:COM ACTIVE FREQUENCY:1, Frequency BCD16) (>L:LASTFREQ, Frequency BCD16)
		}
the variable LASTFREQ is to keep the last used to call back.
but when i do that part of code the variable doesn't change at the first click...i explain...
Freq is 120.10
i click on the mousearea active freq is 119.10 and last freq is 120.10, next click actve freq is 118.10 and lastfreq becomes 119.10...and so on...
what i want is to get the same freq on active and in LASTFREQ variable at the same click...
this code seems to assume this but not at the first time and i don't understand why...
does anyone have any suggestion or tip ?
thank's in advance
 
Back
Top