PDA

View Full Version : Slow encoder count



verticallimit
11-27-2011, 04:07 PM
I am going to mount my CRS / HDG / NAV and several other encoders to my cockpit.
I use Leo's BU0386X for the inputs and FSUIPC as an interface.
But the up/down count in the display when the encoder is turned is very slow and unstable, I've tried all settings.
The encoders that i use will not work with OpenCockpit cards.
Could a better solution bee to read the button function from the BU0386 and manage it through SIOC, or are there better solutions.

What have you done to solve this problem ?

AK Mongo
11-27-2011, 05:02 PM
Check out the fsuipc support forum. Pete Dowson has created a Lua script that allows fast/slow encoder differentiation for Leo's card. Tom_G from here was instrumental in getting it to work, and may be able to answer questions.

Reid

iwik
11-28-2011, 01:47 AM
Hi Claus,
here is the thread Reid was refering to.

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

Les

AK Mongo
11-28-2011, 04:08 AM
Hi Claus,
here is the thread Reid was refering to.

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

Les
Thanks Les. I was posting from my phone, so it wasn't easy to add.

Reid

jonesthesoftware
11-28-2011, 06:34 AM
Hi
WHat encoders are you using? It's possible to reflash the Open cockpits PIC chip to enable the use of Elma E37 encoders and obviously it already supports the CTS288 type.
regards
geoff

Tom_G_2010
11-28-2011, 01:46 PM
The lua script works real well, but setting the timing can take a few attempts as it is influenced by personal preference and I suspect to some degree by pc peformance when loaded down running flight sim. Claus, if you have any questions Pete is a great resource and I would be glad to help as well.

verticallimit
11-28-2011, 05:37 PM
Thank you for the answers.

I will download LUA and try to get it to work with my encoders.
Lua is new to me but have heard little about its benefits.

Tom_G_2010
11-28-2011, 06:16 PM
Thank you for the answers.

I will download LUA and try to get it to work with my encoders.
Lua is new to me but have heard little about its benefits.

If you are already using FSUIPC then there's nothing more to download. All that's needed is to create the lua script based on the thread in Pete's forum. If you need FSUIPC then you can download and purchase it from his web site http://www.schiratti.com/dowson.html

verticallimit
11-28-2011, 07:10 PM
Hi.
I just updated my FSUIPC and downloaded the HID scanner. It seems that in LUA examples there are the "rotaries" and this is identical to the one mentioned in the thread, I will look into it later.

But how can I find the device number, do I count from device 0 and down to BU836 device ?

Result from HIDscan:

Device at "\\?\hid#vid_1dd2&pid_1001#6&96333b4&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}"
Vendor=1DD2, Product=1001 (Version 1.35)
Manufacturer= Leo Bodnar
Product= BU0836X Interface
Serial Number= B18216
Usage Page: 1
Input Report Byte Length: 6
Output Report Byte Length: 0
Feature Report Byte Length: 18
Number of Link Collection Nodes: 3
Number of Input Button Caps: 1
Number of InputValue Caps: 1
Number of InputData Indices: 33
Number of Output Button Caps: 0
Number of Output Value Caps: 0
Number of Output Data Indices: 0
Number of Feature Button Caps: 0
Number of Feature Value Caps: 1
Number of Feature Data Indices: 1
Buttons range 1 -> 32 at indices 0 -> 31
Value POV at index 32, range 0 -> 7, using 4 bits

Tom_G_2010
11-28-2011, 11:32 PM
. . . But how can I find the device number, do I count from device 0 and down to BU836 device ? . . .

One easy way to confirm the device number is to look at the FSUIPC config file in the [Buttons] section. If you've assigned a button function to your bodnar card it will be listed there. For example if you had assigned the pan reset function to button 37 it might look like this 10=U0,36,C66415,0 ; PAN_RESET_COCKPIT the U0 in that example tells me that the bodnar card is device 0 in this case.

verticallimit
11-30-2011, 10:10 AM
Thanks. I will now work on my FGCP and hope for susces