Jump to content
The simFlight Network Forums

FS2020 FSUIPC7 Offset for LVLCHG (level change) ??


Recommended Posts

Hello from Austria!

Please help me:

I use an autopilot hardware from Opencockpits with a script some years old. 

Now in FS2020 there are some standard planes (eg. Cessna 172,  Citation etc.) where LVLCHG is possible.

But I cannot find an offset for it. 

Can you help me please?

Thanks in advance and best regards

Hermann

 

Link to post
Share on other sites
6 minutes ago, hermann said:

Now in FS2020 there are some standard planes (eg. Cessna 172,  Citation etc.) where LVLCHG is possible.

Is that the Autopilot Flight Level Change? Thats readable at offset 0x0B49 (but nor writeable).

7 minutes ago, hermann said:

I use an autopilot hardware from Opencockpits with a script some years old. 

What sort of script was that - lua? How does that control the 'LVLCHG' - or doesn't it and you want to add this functionality?

John

Link to post
Share on other sites
Just now, hermann said:

I use the SIOC program and want to add LVLCHG as a new funktionality

But I don't use or know about SIOC, and am not sure what LVLCHG is. It would help if you could answer my questions...:

5 minutes ago, John Dowson said:

Is that the Autopilot Flight Level Change? Thats readable at offset 0x0B49 (but nor writeable).

?

6 minutes ago, John Dowson said:

What sort of script was that - lua? How does that control the 'LVLCHG' - or doesn't it and you want to add this functionality?

 

?

Link to post
Share on other sites

It seems that LVLCHG and FLCH (Flight Level Change) are the same thing but different names (for different aircraft), so maybe try offset 0x0B49. First, check to see if this is populate correctly (i.e. read). This offset is based upon the following simvar (although is not documented as simvar available via SimConnect) - from the MSFS SDK documentation:

AUTOPILOT FLIGHT LEVEL CHANGE Boolean, toggles the autopilote Flight Level Change mode

I added this as read only but I'm not sure why - I can't remember if I tested this for write access (as this is not defined in the SimConnect documentation). I could maybe try adding write access to this simvar to see if that works.

Otherwise, you may have to wait until there is access to lvars to see if its available via that route.

John

  • Like 1
Link to post
Share on other sites
6 minutes ago, hermann said:

Is it possible that you can give write access to it? (it is not urgent)

Its not possible at the moment. This is the comment I added when this was added:

Quote

Offset 0x0B49 (AUTOPILOT FLIGHT LEVEL CHANGE) is read-only. There is currently no control (that I am aware of) that you can use to assign this to a button. Due to this, at least for the time being, you can assign a keypress in MSFS to the MSFS control TOGGLE AUTOPILOT FLIGHT LEVEL CHANGE (or, probably better, two assignments to AUTOPILOT FLIGHT LEVEL CHANGE ON/OFF, with an offset condition on 0x0B49) and then assign your buttons or switches to those key presses.

But a user then reported that those (MSFS-only) controls weren't working. Here's the post:

I would first try if those events mentioned work in MSFS. If they do, then it should be possible to assign to a key press, which you could also send via an offset if needed (i.e. the general control offset at 3110 with FSUIPC added control 1010 for key press and release).

Other than that, you could see if the additional controls provided by MobiFlight can handle FLC/LVLCHG, either in the MobiFlight topic in this forum (see below) or on the MobiFlight channels.

For MobiFlight controls, see this topic (there are also other topics on installing and using MobiFlight with FSUIPC7): 

 

 

John

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
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...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.