- Messages
- 2
- Country

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