AK Mongo
05-05-2011, 04:45 PM
Builders,
We GA folks have a bit of a problem. When using Leo's board for encoder operation, there is no way to differentiate between a slow turn and a fast turn. Because of that, the encoders are practically unusable for hdg, and obi adjustment.
Other i/o solutions (opencockpits, goflight) apparently have a way for fsuipc to differentiate between a slow turn and a faster one and allow for a faster instrument response. I.e. one detent on the encoder turned slowly =1 degree of adjustment. When turned quickly it is 10 degrees.
On the FSUIPC forum, Pete said it may be possible to do this through FSUIPC with their new HID facilities and LUA. The text is quoted here:
"You could do it with a Lua plug-in. You'd need to time the gap between each signal. Check, for example, the "tripleuse" lua example provided.
However, I have doubts that FSUIPC's button polling rates and Lua load-compile-test rates would be adequate for a dial instead of a button being pushed by a finger. I'd recommend looking at the new HID facilities for joysticks, just released today. FSUIPC 4.704 or 3.992 feature these (and WideClient 6.88). Download (from "Download Links" subforum) the latest Lua plug-ins documents and examples and see the "HidDemo" lua plug-in. That does a lot more than you'd need. You'd only need to read certain "axes", those corresponding to your dials. The rest could be left to normal methods."
Are there any developers or programmers out there that could help figure this out?
Reid
We GA folks have a bit of a problem. When using Leo's board for encoder operation, there is no way to differentiate between a slow turn and a fast turn. Because of that, the encoders are practically unusable for hdg, and obi adjustment.
Other i/o solutions (opencockpits, goflight) apparently have a way for fsuipc to differentiate between a slow turn and a faster one and allow for a faster instrument response. I.e. one detent on the encoder turned slowly =1 degree of adjustment. When turned quickly it is 10 degrees.
On the FSUIPC forum, Pete said it may be possible to do this through FSUIPC with their new HID facilities and LUA. The text is quoted here:
"You could do it with a Lua plug-in. You'd need to time the gap between each signal. Check, for example, the "tripleuse" lua example provided.
However, I have doubts that FSUIPC's button polling rates and Lua load-compile-test rates would be adequate for a dial instead of a button being pushed by a finger. I'd recommend looking at the new HID facilities for joysticks, just released today. FSUIPC 4.704 or 3.992 feature these (and WideClient 6.88). Download (from "Download Links" subforum) the latest Lua plug-ins documents and examples and see the "HidDemo" lua plug-in. That does a lot more than you'd need. You'd only need to read certain "axes", those corresponding to your dials. The rest could be left to normal methods."
Are there any developers or programmers out there that could help figure this out?
Reid