Jump to content

Trims not working correctly with encoders (DCS-Bios)


Recommended Posts

Hi,

 

I'm using DCS-Bios to control my home-build-cockpit. Currently I'm interfacing the TrimWheels (pitch, roll, yaw) and I have an unexpected result.

 

I'm using the command: DcsBios::RotaryEncode pitchTrim("PITCH_TRIM", "-3200","+3200", 48,49)

 

When I turn the encoder one detent it goes directly to a fixed position (I gues +3200) and it stays there, even when I turn the enoder further. When I turn it one detant in the other direction it goes to the opposite position (I guess -3200).

 

When I change the values to +-65535 it goes directly to the max position after turning it one detent.

 

When I use the same encoder for changing the ehsiHdgSetBrn I see that the heading is turning fine, by turning the enoder the heading is following.

So, the encoder is working fine but the behavior with the trim is not what I expect.

 

Any idea what is wrong? Anyone else having the same problem?

 

Thanks in advance

 

Werner

Link to comment
Share on other sites

  • 2 weeks later...

I was having a similar issue with the P51 trims not working on the P-51.
I solved it by switching to an axis (potentiometer) on a Leo Bodnar board.
On the P-51 at least, this change means the full range of the control potentiometer maps to the full range of the trim movement.
AND a major advantage is that it doesn't need any coding because Windows sees the Bodnar board as a Joystick.
Here's a video of a test I made.


That handwheel is connected to a potentiometer and the needle via a compound gearing system to give as wide a range of potentiometer movement as possible (about 240 degrees), while allowing the handwheel to turn 720 degrees and the needle to move 60 degrees

On a side note:  When I used encoders for something else, I found putting 1nF capacitors from each encoder pin to ground helped a lot with spurious signals.

Link to comment
Share on other sites

The trim wheels (on the left console) work fine with buttons or rotary encoders. I'm not using DCS-Bios. So I guess the problem is related to the DCS-Bios implementation.

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

Link to comment
Share on other sites

  • 4 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...