Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    500+ This must be a daytime job



    Join Date
    Oct 2009
    Location
    Juneau, AK
    Posts
    553
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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?

    Reid
    http://juneaucessnasim.blogspot.com
    N58243 (virtual)- Low and Slow...

  2. #2
    150+ Forum Groupie
    Join Date
    Nov 2008
    Location
    Usa
    Posts
    163
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  3. #3
    500+ This must be a daytime job



    Join Date
    Oct 2009
    Location
    Juneau, AK
    Posts
    553
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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....

    Reid
    http://juneaucessnasim.blogspot.com
    N58243 (virtual)- Low and Slow...

  4. Thanks 737NUT thanked for this post
  5. #4
    150+ Forum Groupie
    Join Date
    Nov 2008
    Location
    Usa
    Posts
    163
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  6. #5
    500+ This must be a daytime job



    Join Date
    Oct 2009
    Location
    Juneau, AK
    Posts
    553
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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...

  7. #6
    150+ Forum Groupie
    Join Date
    Nov 2008
    Location
    Usa
    Posts
    163
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Bodnar slow encoder problem may be fixable...Lua help needed please!

    Thanks mate, great news
    Great looking helo cockpit btw!
    Thanks, popped into the fabricators today to check on progress, things are coming together nicely, had the clear plastic inserts for the bezels done as you can see in the image. Will insert the bezels into a 3mm black acrylic face plate along with encoders. Hard job will be lining up the gauges on the lcd monitor with the holes on the face plate



    Cheers

    Rhys

  8. #7
    500+ This must be a daytime job 737NUT's Avatar
    Join Date
    Feb 2006
    Location
    Indianapolis, IN
    Posts
    761
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Bodnar slow encoder problem may be fixable...Lua help needed please!

    Quote Originally Posted by AK Mongo View Post
    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!
    Will this LUA file be made available to the rest of us?
    Thanks,
    Rob

  9. #8
    500+ This must be a daytime job



    Join Date
    Oct 2009
    Location
    Juneau, AK
    Posts
    553
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Bodnar slow encoder problem may be fixable...Lua help needed please!

    Quote Originally Posted by 737NUT View Post
    Will this LUA file be made available to the rest of us?
    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!

    Reid
    http://juneaucessnasim.blogspot.com
    N58243 (virtual)- Low and Slow...

  10. Thanks jmig thanked for this post
  11. #9
    150+ Forum Groupie
    Join Date
    Nov 2008
    Location
    Usa
    Posts
    163
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  12. #10
    500+ This must be a daytime job



    Join Date
    Oct 2009
    Location
    Juneau, AK
    Posts
    553
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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...

Page 1 of 2 12 LastLast