Jump to content

Recommended Posts

Posted (edited)

Hi,

I am using FlyWithLua for my own scripting of certain functionalities. I've tried to use the commands "CL650/CDU/1/brt_up" and "CL650/CDU/1/brt_down" from within Lua scripting, but sending these commands does not have any effect at all.

I can, however, assign the CDU brightness control to joystick buttons or keyboard shortcuts from the respective X-Plane configuration UI, and CDU brightness control works.

What could be the issue? Are "CL650/CDU/1/brt_up" and "CL650/CDU/1/brt_down" the correct commands after all? 
I have many other CL650 commands that I use in my scripts, and they work just fine.

Thanks

 

Edited by bpcw0001
Posted
On 4/2/2024 at 7:44 AM, bpcw0001 said:

I am using FlyWithLua for my own scripting of certain functionalities. I've tried to use the commands "CL650/CDU/1/brt_up" and "CL650/CDU/1/brt_down" from within Lua scripting, but sending these commands does not have any effect at all.

At a guess, these commands have to be held down for multiple frames to see any change. They weren't really made to be called from scripts. You can look at using command_begin/end, not command_once, and maybe you can figure out a way to do what you're trying to do (whatever that is).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...