Hi,

I'm working on designing my radio (COM/NAV) display, and I have included several momentary buttons (tac switches) in the design.  This works great for functions like Com1_Xfer which expect a button, but I was looking to use the button for functions like Com1_Power or Com1_Pull.  Unfortunately, these functions only support a switch.

I see some functions, like Audio_Com1 support both buttons and switches, so I was wondering if Com1_Power or Com1_Pull could be configured the same way?

  Thanks

  Mike
Apr 9 in Digital Inputs by

1 Answer

Mike,
You can use the button instead of switch for Power ( it will be available in next configurator update).
For "Pull"  you should use it as-is (as a switch), but connect physically the button (press-and-hold).
Vlad
Apr 12 by

  Hi Vlad,

I had a chance to install 0.9.55b today and test out the changes.  The button push on/off behavior for Com1_Power and ComNav1_Power works great!  I also tried out Com1_Pull (again as a button) which swaps the tuning step between 5 and 25Khz.  This works fine too as a button (push on/off).  Thank you very much for the updates.

A couple of issues that I noticed while testing.  I have some LED back lights assigned to Com1_Power, so the lights come on when the radio is powered on.  The state of Com1_Power (and ComNav1_Power) seems to be inverted, so the LEDs go off when the radio is turned on and vice versa.

I also noticed that the state of Com1_Pull seems to influence the Com1_Mhz control.  I have a dual encoder (with button) defined like this:

E2.5    Com1_Khz
B2.7    Com1_Pull
E2.8    Com1_Mhz
In the normal state Com1_Khz and Com1_Mhz work as expected.  When I press Com1_Pull, the step on Com1_Khz goes to 25Khz (which is also expected), but the E2.8 input starts controlling the Khz.  When I press Com1_Pull again, E2.8 goes back to controlling Mhz.
  Thanks
  Mike

Mike,
1.There is no "power on" output for LED in SimVim config now. Why do you need it? If device is ON you see it on all displays. (We can add this in future updates, but if you really need now it you can add the f=i after the parameter name.)

2. Yes, as you could see on new configurator image-maps for Com/Nav devices (read the text under the "Pull" switch) in "Generic"  and "Conbo" radios, it is made for those who uses only one encoder for Mhz/Khz)

Vlad
 

Hi Vlad,

Regarding the LED, the radio interface I have built has two tactile switches that are back-lit with an LED.  The switch cap is removable such that I can put a label under the cap, and the back light makes the label readable when it is lit.  I was trying to configure SimVim so that the light behind the buttons goes off when the radio's power goes off.  Otherwise the radio looks like it is still on, even though the displays are dark.  

The last version of the configurator allowed me to assign Com1_Power to an LED, so I thought that it was supported.  Instead, I have been assigning Avionics_On to the LEDs, which closely approximates what I was looking to accomplish.  I plan on sticking with Avionics_On for the time being.

On the "Pull" question, I see now what you are doing.  It looks like you combined two different pull behaviors under 1 function.  The pull behavior I was expecting was how the KX radios I used to fly with would behave.  Pulling the center of the dual encoder changed the step, but the large knob still controlled Mhz and the small knob Khz.  I'll just have to remember to "push" the button before adjusting Mhz.

  Thanks

  Mike
Mike,
No need to remember the "pull" position, just download the SImVim version 9.55c (uploaded today).
Now, the plugin detects if the Com is controlled with single encoder or dual.
If dual, the secondary "pull" function is not active, the Mhz knob is always control Mhz.

For power LED, as I said before, just add the f=i after the parameter name in the data.cfg
Actually, if you want to get the LED be Off when the device is fully unpowered,  it will not work this way, because in SimVim  program the radion device can be unpowered not only when its power switch is off, but also when avionics off  or bus voltage is less than needed for this device. You can wait until we will add the "power-off" parameter for every radio device.
Vlad
Hi Vlad,

I just installed 0.9.55c and the pull function works great with the dual encoder!

I also tried out the f=i parameter, which definitely works.  I think I'm going to stick with Avionics_On for now because of what you mentioned about the avionics switch.  I'll keep an eye out for an update with the power-off parameter.

  Thanks!

  Mike
...