Hi,
I am working on a radio system where I inpput the frequency in décimal value and transfer it into FS variables using KEY_COM_SET with a conversion from decimal to BCD (DEC_TO_BCD function). It works well with COM, NAV and XPDR frequencies, but not with KEY_ADF_SET.
How can I convert and transfer an ADF decimal frequency (range 100 to 1599.5) to ADF variables in FS as
does not convert into the right BCD value. I suppose that the fact that the ADF frequency using 2 FS variables ADF_FREQUENCY and ADF_EXTENDED_FREQUENCY is a problem.
Jean-Pierre
I am working on a radio system where I inpput the frequency in décimal value and transfer it into FS variables using KEY_COM_SET with a conversion from decimal to BCD (DEC_TO_BCD function). It works well with COM, NAV and XPDR frequencies, but not with KEY_ADF_SET.
How can I convert and transfer an ADF decimal frequency (range 100 to 1599.5) to ADF variables in FS as
Code:
trigger_key_event(KEY_ADF_SET(DEC_TO_BCD(decimal value of the frequency in HZ)))
Jean-Pierre







