Jump to content
The simFlight Network Forums

Reading other then UB or SB with LVARS.section


MarkStallen
 Share

Recommended Posts

 

I've this in my ini file :

[LvarOffsets]
0=A32NX_BRAKES_HOT=UB66C1
1=A32NX_AUTOBRAKES_ACTIVATED=UB66C2
2=XMLVAR_Autobrakes_Level=UB66C3
3=A32NX_MASTER_WARNING=UB66C4
4=A32NX_MASTER_CAUTION=UB66C5
5=A32NX_ECAM_ALL_Push_IsDown=UB66C6
6=A32NX_AUTOPILOT_HEADING_SELECTED=UW66C7

if I try to read out number 6 then I got nothing. Tried every type UB-SD and every type with reading offsets in FSUIPC. Also tried other  LVAR's off more than one byte .Number 1 through 5 are working fine. 

What do I do wrong?

Link to comment
Share on other sites

27 minutes ago, MarkStallen said:

f I try to read out number 6 then I got nothing.

When you say "nothing" do you mean the assigned offset never changed even though it should?

28 minutes ago, MarkStallen said:

Tried every type UB-SD and every type with reading offsets in FSUIPC.

Well, the two must match to make sense.

Did you try the default, the 8-byte floating point "double" ("DBL" in Lua)? For that you just omit the type altogether, so

6=A32NX_AUTOPILOT_HEADING_SELECTED=66C7

and read it in Lua with

x = ipc.ReadDBL(0x66C7)

Pete

 

Link to comment
Share on other sites

57 minutes ago, MarkStallen said:

6=A32NX_AUTOPILOT_HEADING_SELECTED=UW66C7

if I try to read out number 6 then I got nothing. Tried every type UB-SD and every type with reading offsets in FSUIPC. Also tried other  LVAR's off more than one byte .Number 1 through 5 are working fine. 

What do I do wrong?

Are you sure that lvar exists? Just took a look at the lvars in the FBW A320, and it doesn't exist in the stable mod at least.
Can you see it if you list the lvars (Add-ons->WASM->List Lvars)? These are the only A32NX_AUTOPILOT_* lvars I can see:

A32NX_AUTOPILOT_APPR_MODE = 0.000000
A32NX_AUTOPILOT_FPA_SELECTED = 0.000000
A32NX_AUTOPILOT_LOC_MODE = 0.000000
A32NX_AUTOPILOT_TRACK_SELECTED:1 = 90.653481

 

Link to comment
Share on other sites

1 hour ago, MarkStallen said:

Im gonna try your solution 6=A32NX_AUTOPILOT_HEADING_SELECTED=66C7 . Standby

 

58 minutes ago, MarkStallen said:

No Luck

That lvar is defined as for Output in the MF spreadsheet, which I think means that it is for reading only and cannot be written to.
Are you saying that the offset doesn't hold the correct value? Does it not show the same value as when you list the lvars? if not, what is the value when listing and what is the value in the offset?

Link to comment
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...
 Share

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