Hi Peter,
I am currently writing software for some modules I have created, which are the ADF, COM, NAV avionics.
I have just finished the ADF coding which works perfect and I am now finalizing the COM radio code, but I have run into some problems unfortunately. The transfer button works flawlessly but I cant seem to write to the standby section of the radio frequency for some reason.The COM module does indeed read what is displayed in FSX.
FS verson: FSX
FSUIPC version: 4.32
FS Service Packs: SP1 & SP2
Here is a section that I used for writing to FS though FSUIPC
uiCOMData = 0;
uiCOMData |= (InputPacketBuffer[7]<<12);
uiCOMData |= (InputPacketBuffer[8]<<8);
uiCOMData |= (InputPacketBuffer[9]<<4);
uiCOMData |= InputPacketBuffer[10];
//send COM1 Freq
FSUIPC_Write(0x034E, 2, &uiCOMData, &dwResult);
FSUIPC_Process(&dwResult); // Process the request(s)
uiCOMStandbyData = 0;
uiCOMStandbyData |= (InputPacketBuffer[3]<<12);
uiCOMStandbyData |= (InputPacketBuffer[4]<<8);
uiCOMStandbyData |= (InputPacketBuffer[5]<<4);
uiCOMStandbyData |= InputPacketBuffer[6];
//send COM1 stby Freq
FSUIPC_Write(0x311A, 2, &uiCOMStandbyData, &dwResult);
FSUIPC_Process(&dwResult); // Process the request(s)
uiCOMTFRData = 0x0008; //swap radios COM1
FSUIPC_Write(0x3123, 1, &uiCOMTFRData, &dwResult);
FSUIPC_Process(&dwResult); // Process the request(s)
Any help Peter on this matter would be greatly appreciated.
Kind regards
Padraig