Jump to content
The simFlight Network Forums

Encoder radio COM1


seb737

Recommended Posts

5 hours ago, seb737 said:

I can not find the offsets to increment and decrement the frequency of COM radio.

There are no "offsets" to do things like increment and decrement values. The offsets contain the values which you can read, change yourself, and write back. That's the whole point of providing such access in the first place!

If all you want to do it by increment and decrement using the FS facilities for such, use the FS controls for these things. you can send FS controls via offsets too -- see 3110.

Pete

 

Link to comment
Share on other sites

  • 1 month later...

Hi Sebastien, 

You can try sample code below (C#)

//definitions    

private Offset<int> sendControl = new Offset<int>(0x3110, true);   

private readonly int COM_RADIO_WHOLE_DEC = 65636;
private readonly int COM_RADIO_WHOLE_INC = 65637;
private readonly int COM_RADIO_FRACT_DEC = 65638;
private readonly int COM_RADIO_FRACT_INC = 65639;

 

        private void btn_winc_Click(object sender, EventArgs e)
        {

            FSUIPCConnection.Process();
            sendControl.Value = COM_RADIO_WHOLE_INC;

        }

 

 

Link to comment
Share on other sites

  • 2 weeks later...

I have successfully set up Com 1 radio tuning encoder by detecting encoder movement as a switch and used the drop down menu to assign Com 1 standby whole increase and decrease. When I try similar on Com 2 the menu shows Com 2 standby increase but no decrease. I can use the radio by always increasing so that the tuning "goes round again". Can anyone advise how I can get the decrease working for anti clock movement of the knob?

Barry

www.a320sim.com

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.