Menu

Throttle logic re-coding

bbosen
2022-10-21
2022-10-21
  • bbosen

    bbosen - 2022-10-21

    I just started development of a custom version of Linux Air Combat for the Steam Deck. It derives directly from our latest AppImage version Lac08p89, and I have designated it "Lac08p89SD".

    The first area needing attention is the logic that manages the spring-loaded throttle lever. I already wrote logic for spring-loaded throttle levers of the type in common use on console game controllers (as opposed to aircraft-oriented throttle levers which do NOT have a spring-loaded "return to center" design). All of this is described in our FAQ #53.

    That old spring-loaded throttle handling was written for the Raspberry Pi and as I have examined the source code I can see that it makes important assumptions with regard to timing. Those assumptions are invalid when the hardware is a lot faster than the Raspberry Pi, and I think that's why I the spring-loaded throttle is reporting crazy behavior on the Steam Deck. I've coded a new version of that logic with some simple, mindless adjustments for faster CPU speeds, but I haven't tested it yet. I won't be testing it until I'm ready to test in concert with a few other adjustments that may be necessary on the Steam Deck. Stay tuned...

     
  • bbosen

    bbosen - 2022-10-21

    Progress! Now the spring-loaded throttle logic is working nicely, as described in FAQ#53, in my prototype version Lac08p89 for the Steam Deck. I also fixed two little bugs that were detecting spurious, unwanted "hat switch" activity. It's more and more fun to fly LAC on the Steam Deck. Still have some more work to do to perfect it, though...

     

    Last edit: bbosen 2022-10-21

Log in to post a comment.

MongoDB Logo MongoDB