Hello! There seem sto be something I am missing when trying to map a Midi Knob to a contginuous control. My MIDI controller is a Midi Fighter Twister. I am trying to get a knob to control the Elevator Trim control on a Cessna 172SP. (The one that comes with X-Plane).
This is the line in the TOML file:
{ ch = 1, cc = 0, type = "enc", dataref = "sim/cockpit2/controls/elevator_trim", modifier_up = 0.0125, modifier_down = -0.0125, value_min = -1, value_max = 1, value_wrap = true },
It sort of works.... but the trim wheel doesn't behave correctly. it will move when I twist the knob.. but when I then twist the knob in the opposite direction, the wheel keeps turning in the direction I started in. Eventually it turns the right direction if I keep turning it back and forth... but its not working like it should.
So what am I doing wrong here? I originally tried the control "command_up = "sim/flight_controls/pitch_trim_up" with the accompanying "command_down" but that just really screwed it up... (and I got error messages that it didn't like negative values in the parameters!) If I use the up/down hat switch on my flight yoke, I notice it deflects the value up or down by increments of about 0.125 degrees.
My desire is to get an actual rotary feel in controlling the Trim wheel instead of move a switch up or down a whole bunch of times.. which doesn't feel as intuitive.
I based this off of the example provided in the Xmidicntrl manual where it shows the command for a rotary knob on a Nav radio... I thought that might be an appropriate model, but that apparently is not going to work.
Any suggestions?