October 11, 200718 yr Can anyone tell me what the format of dwVal should be when using the KEY_COM_STBY_RADIO_SET event via simconnect? The SDK help file says it should be BCD Hz, but there's only 8 BCD digits in a doubleword and that's not enough to specifiy the frequency in Hz. I tried 0x00127975 and 0x12797500 neither had any affect.Thanks
October 11, 200718 yr Commercial Member >Can anyone tell me what the format of dwVal should be when>using the KEY_COM_STBY_RADIO_SET event via simconnect? The SDK>help file says it should be BCD Hz, but there's only 8 BCD>digits in a doubleword and that's not enough to specifiy the>frequency in Hz. I tried >0x00127975 and 0x12797500 neither had any affect.The documentation is, ahem, wrong, it seems.The Key Events for radios take the same 16-bit BCD encoding they always have done, in all versions of FS since I can remember, and the same format used in the FSUIPC offsets. For 127.975 you use 0x2797. The initial 1 is assumed and the 50Hz bits are assumed for those ending in 2 and 7.The Sim Vars return the frequencies in the same form if you specify "Frequency BCD16" as the unit. The "BCD16" format is the proper name for the ones used by the Events.On the other hand, the KEY_ADF_COMPLETE_SET one uses 0x12345000 for 1234.5, and similarly its Sim Var is "Frequency ADF BCD32".The more things change the more they stay the same, eh? RegardsPete Win10: 22H2 19045.2728 CPU: 9900KS at 5.5GHz Memory: 32Gb at 3800 MHz. GPU: RTX 24Gb Titan 2 x 2160p projectors at 25Hz onto 200 FOV curved screen
Create an account or sign in to comment