PDA

View Full Version : Rotary Encoders and FSUIPC



Avro748
12-21-2014, 02:58 PM
Well I'm stumped after five hours of this, so I decided to ask the public for help:

I bought a set of rotary encoders and wired them to my input card. They're the kind of rotary encoders that will activate both inputs when you turn it, but in a different order depending on the direction (If I turn it left, input 2 will pulse, followed by input 1. If I turn it right, input 1 will pulse, followed by input 2). The problem is that if I set one of the inputs as an INCREASE function and the other one as a DECREASE function, the two will cancel each other out. I read through the users manual to try and figure out a way to do it manually in the FSUIPC ini, and came up with something that sort of works, but is very unreliable. Does anyone have a better method?

Here is the ini section, in case I'm on the right track and a simple modification might fix it:

[Buttons.Avro 748]
POLLINTERVAL=12
BUTTONREPEAT=75,0
BUTTONREPEAT=75,1
1=CU(+0,1)0,0,C65880,0
2=CU(+0,0)0,1,C65879,0

Thanks

Avro748
12-23-2014, 02:56 PM
Has anyone here had to work with this type of encoder?

anijan
12-25-2014, 11:28 AM
Perhaps you will have more luck to ge an answer on the Peter Dowson Forum, http://forum.simflight.com/forum/30-fsuipc-support-pete-dowson-modules/

Avro748
12-25-2014, 01:40 PM
Yeah, Pete is awfully quick to reply. I'll see if anyone here has any ideas, then if it doesn't sort out in a few days, I'll ask over there.

Thanks

iwik
12-25-2014, 02:05 PM
Hi,
this may help you. There is also some examples in the SDK I believe.

http://forum.simflight.com/topic/68260-rotary-encoder-input-speed/

Les

Avro748
12-28-2014, 05:00 PM
Thanks, I'll be sure to check it out!