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

Setting ADF Frequency

Messages
2
Country
newzealand
Hi,

I hope someone can shed some light on this for me. I've been working on some basic avionics software and I have successfully been able to set the NAV/COMM frequencies using a 16 bit BCD representation of the frequency. However I'm having some difficulty correctly setting the ADF freqeuncy. Since the possible range of ADF frequencies is roughly 200-1799KHz including a tenth of a KHz digit, this would require at the most 5 digits - therefore I'm guessing that the frequency should be encoded as a 32bit BCD value.
I'm using the ADF_SET EventId (which the SDK indicates expects a BCD value) - but in most situations the resulting ADF frequency does not correlate to the value I'm trying to set.
I have a suspicion that the ADF_SET eventId does not allow setting the entire adf frequency in one go. Can anyone confirm this?
I have tried using the ADF_COMPLETE_SET event id too, but using this results in no frequency change at all.

Has anyone been able to set an explicit ADF frequency using TransmitClientEvent? Anyone got any suggestions for what I might be missing?

Oh and I think I'm using the SP1 version of SimConnect.

Thanks for any help you can offer,

Cheers,
Greg
 
Has anyone been able to set an explicit ADF frequency using TransmitClientEvent? Anyone got any suggestions for what I might be missing?

Yes, FSUIPC4 does it okay. It uses ADF_COMPLETE_SET, with the BCD value encoded so that

1234.5 is provided as 0x12345000

ADF2_COMPLETE_SET also works if the aircraft is equipped with two.

Regards

Pete
 
Thanks for the confirmation Pete. In my tests I was encoding 1234.5 as 0x12345 - I'll increase the significance as your example suggests and give that a try.

Cheers,
Greg
 
Back
Top