condac/openSimIO

xPlane-11 plugin treats all inputs as the same

Opened this issue · 1 comments

To Reproduce
Steps to reproduce the behavior:

  1. Set up a basic potentiometer circuit (connected to the A0 pin)
  2. Download the last release of openSimIO (v0.2.0)
  3. Send the code to Arduino Uno
  4. Copy the plugin to the xPlane-11 folder
  5. Create the config.txt file (USB version)
  6. Open xPlane-11 and start a new flight
  7. Select "Plugins > openSimIO > Show input status"
  8. Turn the potentiometer
  9. Verify that all inputs will change together (despite the potentiometer being connected only to the A0 pin)

Expected behavior
Only the roll (A0) input should have changed when turning the potentiometer.

Screenshots
image
image
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Arduino IDE 2.2.1

Arduino (please complete the following information):

  • Device: Uno
  • Serial

Additional Information
I have tested the Arduino code in TIME_DEBUG mode and apparently the Arduino is reading the potentiometer correctly. I would say that the problem is in the plugin.

Is there anything connected to the other analog pins? there is a known fenomenom where the analog signals are so sensitive that they pick up signals from pins near them if they are not connected and "hanging in the air". This looks like that...