- Messages
- 4
- Country

Hi,
has anybody managed to set a ADF frequency with a fractional, e.g. 365.5 kHz?
TransmitClientEvent(..., 0x365, ...) works fine, but sending 0x3655 just produces rubbish in the ADF gauge.
Do I really have to adjust the 10th-digit sending multiple EVENT_ADF_INC messages?
has anybody managed to set a ADF frequency with a fractional, e.g. 365.5 kHz?
TransmitClientEvent(..., 0x365, ...) works fine, but sending 0x3655 just produces rubbish in the ADF gauge.
Do I really have to adjust the 10th-digit sending multiple EVENT_ADF_INC messages?
Code:
enum EVENTS
{
EVENT_ADF_SET
};
// this enum is missing in the SimConnect namespace (?!?)
enum GROUP_PRIORITIES :uint
{
SIMCONNECT_GROUP_PRIORITY_HIGHEST = 1,
SIMCONNECT_GROUP_PRIORITY_HIGHEST_MASKABLE = 10000000,
SIMCONNECT_GROUP_PRIORITY_STANDARD = 1900000000,
SIMCONNECT_GROUP_PRIORITY_DEFAULT = 2000000000,
SIMCONNECT_GROUP_PRIORITY_LOWEST = 4000000000
}
...
simconnect.MapClientEventToSimEvent(EVENTS.EVENT_ADF_SET, "ADF_SET");
...
simconnect.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USER,
EVENTS.EVENT_ADF_SET,
0x365, // <- ok, but 0x3655 does not work
GROUP_PRIORITIES.SIMCONNECT_GROUP_PRIORITY_HIGHEST,
SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);
