Simstrumentation / Air-Manager

A collection of quality Air Manager instruments built by flight sim enthusiasts for our own personal home cockpits, but shared with the community at large.
114 stars 21 forks source link

CJ4 Controls Panel - Reworked logic #5

Closed ToddLorey closed 3 years ago

ToddLorey commented 3 years ago

Hi once again. I used my secret decoder ring to evaluate the RPN commands that Mobiflight uses to toggle the run/stop buttons and was able to replace (and improve) the logic to drive the buttons. That old HP 48 calculator I got a long time ago trained me in the RPN mindset. I still have an emulator on my phone that's my go-to calculator.

Have a look at the attached lua code. You should be able to use your existing v1.2 instrument (with resources) and just replace the contents of this file for the logic.lua.

Let me know what you think.

CJ4_Controls_v1.3_logic.txt

p.s. One of these days, I'll figure out a pull request. Just not yet.

rob2791 commented 3 years ago

I’m away from my computer but do you know RPN??? I’ve been trying to figure it out.

On Fri, Sep 17, 2021 at 3:43 PM ToddLorey @.***> wrote:

Hi once again. I used my secret decoder ring to evaluate the RPN commands that Mobiflight uses to toggle the run/stop buttons and was able to replace (and improve) the logic to drive the buttons. That old HP 48 calculator I got a long time ago trained me in the RPN mindset. I still have an emulator on my phone that's my go-to calculator.

Have a look at the attached lua code. You should be able to use your existing v1.2 instrument (with resources) and just replace the contents of this file for the logic.lua.

Let me know what you think.

CJ4_Controls_v1.3_logic.txt https://github.com/Simstrumentation/Air-Manager/files/7188117/CJ4_Controls_v1.3_logic.txt

p.s. One of these days, I'll figure out a pull request. Just not yet.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Simstrumentation/Air-Manager/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJGKBCOCCZSTYNX2WSRMXVLUCOK57ANCNFSM5EIG65DA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Thanks, Rob Verdon

rob2791 commented 3 years ago

Todd are you on discord? Can you message me FlightLevelRob#5208

ToddLorey commented 3 years ago

I am but not very good at it yet. I'll send you a message though.

ToddLorey commented 3 years ago

I'm Toddimus#2821 on Discord. I sent you a friend request.

Crunchmeister1 commented 3 years ago

If you're just editing code, the text file works well too. We can just copy paste it in. It works just as well.

Crunchmeister1 commented 3 years ago

Testing your code btw todd. Pasted it in. Going to start up the sim and take it for a test spin.