Jump to content
The simFlight Network Forums

Recommended Posts

Posted

 

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?

Posted
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

 

Posted
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

 

Posted
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?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.