Results 1 to 10 of 20
-
05-05-2011, 04:45 PM #1
- Join Date
- Oct 2009
- Location
- Juneau, AK
- Posts
- 553
Bodnar slow encoder problem may be fixable...Lua help needed please!
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.8. 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?
Reidhttp://juneaucessnasim.blogspot.com
N58243 (virtual)- Low and Slow...
-
05-06-2011, 12:11 AM #2
- Join Date
- Nov 2008
- Location
- Usa
- Posts
- 162
Re: Bodnar slow encoder problem may be fixable...Lua help needed please!
Hi Reid,
Caught up with you post over at hovercontrol, I emailed Leo a couple of days ago but have yet to hear back. I realise he must be busy but if he's lurking around the forums maybe he can help us out with this one.
Cheers
Rhys
-
05-06-2011, 01:12 AM #3
- Join Date
- Oct 2009
- Location
- Juneau, AK
- Posts
- 553
Re: Bodnar slow encoder problem may be fixable...Lua help needed please!
Pete Dowson who is the creator behind FSUIPC has offered to help me out with the programming. If it can be done with FSUIPC, he is the man who can do it. May have something by early next week.
Stay Tuned....
Reidhttp://juneaucessnasim.blogspot.com
N58243 (virtual)- Low and Slow...
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikes
737NUT thanked for this post
-
05-10-2011, 07:33 PM #4
- Join Date
- Nov 2008
- Location
- Usa
- Posts
- 162
Re: Bodnar slow encoder problem may be fixable...Lua help needed please!
Thanks for looking into this Reid, I look forward to a possible solution if one is found .
Just ordered my encoders and knobs from Digi-key they should be here next week .
Cheers
Rhys
-
05-10-2011, 08:17 PM #5
- Join Date
- Oct 2009
- Location
- Juneau, AK
- Posts
- 553
Re: Bodnar slow encoder problem may be fixable...Lua help needed please!
Making progress Rhys! Pete has built a LUA file that now has FSUIPC recognizing 4 discrete signals coming off the encoder so that a fast turn can be assigned to fast increases. It is going to take some tinkering to get it right for your system, but it is happening. Great looking helo cockpit btw!
http://juneaucessnasim.blogspot.com
N58243 (virtual)- Low and Slow...
-
05-10-2011, 09:32 PM #6
- Join Date
- Nov 2008
- Location
- Usa
- Posts
- 162
Re: Bodnar slow encoder problem may be fixable...Lua help needed please!
Thanks mate, great news
Great looking helo cockpit btw!
Cheers
Rhys
-
05-11-2011, 12:53 PM #7
-
05-11-2011, 01:09 PM #8
- Join Date
- Oct 2009
- Location
- Juneau, AK
- Posts
- 553
Re: Bodnar slow encoder problem may be fixable...Lua help needed please!
Absolutely. If you want to try it now, the file is available at the FSUIPC forum: http://forum.simflight.com/topic/682...r-input-speed/
Pete is being very gracious with his time and patience helping make this happen!
Reidhttp://juneaucessnasim.blogspot.com
N58243 (virtual)- Low and Slow...
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikes
jmig thanked for this post
-
05-12-2011, 10:02 PM #9
- Join Date
- Nov 2008
- Location
- Usa
- Posts
- 162
Re: Bodnar slow encoder problem may be fixable...Lua help needed please!
Thanks Reid and thanks to pete aswell
I need to get myself into gear and get the full copy of FSUIPC in order to use it . Silly question, do you save the LUA file in note pad or word.
Cheers
Rhys
-
05-12-2011, 10:56 PM #10
- Join Date
- Oct 2009
- Location
- Juneau, AK
- Posts
- 553
Re: Bodnar slow encoder problem may be fixable...Lua help needed please!
There are no silly questions with me and Lua. I saved it in notepad, but word may work if saved as text. I am trying to understand the workings of what he posted now so I can modify it intelligently if needed. I can verify that it is sending cw fast, cw slow, ccw fast and slow signals that are able to be set to different commands in fsuipc. I am experimenting with controlling my vor1 obi. Fsuipc allows you in this case to have a normal(1 degree per click) or fast (I think 5 degrees per click). The tricky part is determining how fast it needs to turn to give a fast reading but still give an accurate slow reading.
Figuring out which settings to use may be variable based on your system.
Fsuipc and Lua seem incredibly powerful, if you know how they work. I do not...yet.
Reid
The full version will allow you to do a lot with your pit, and is worth it for more than this. The extra fs controls it adds and controller programming are also crucial.http://juneaucessnasim.blogspot.com
N58243 (virtual)- Low and Slow...
Candid connections: Platform for casual relationships Live Women Prime Сasual Dating
Super Сasual Dating - Genuine...