PDA

View Full Version : SIOC Elevator Pot Code



tomenglish2000
09-28-2009, 06:26 AM
Hi Captains.

I have built my own yokes and connected the elevator and aileron pots to the first two analog inputs on my USB Expansion card. Controlador picks these up correctly.

Unfortunately I am unable to get my SIOC script to write the pot values to FSUIPC. (I am doing the math using L0 to turn the 0~255 positions to -16383 +16383).

Does anyone have SIOC code for this? I am not convinced that I have the correct FSUIPC_OUT declaration and would like to see some examples.

I would post my code, but I am at work atm and dont have it with me!
Thanks, Tom.