MarkStallen Posted August 9, 2021 Report Share Posted August 9, 2021 Probably doing someting wrong In ini : 13=A32NX_HYD_BRAKE_ALTN_ACC_PRESS=SD66D5 If I list the LVAR with FSUIPC value=1576.3274 If I look at the LVAR (offset 66D5) in the monitor I get with SIF32 : 0.01953125 with S32 : 5 I tried several diferent assignements aswell in the ini file as in the monitor. I can't find the right couple. Link to comment Share on other sites More sharing options...
John Dowson Posted August 9, 2021 Report Share Posted August 9, 2021 If writing as SD (signed Double), you need to read as a FLT32. Alternatively, skip the size: 13=A32NX_HYD_BRAKE_ALTN_ACC_PRESS=0x66D5 and read as a FLT64. S32 is a signed 4 byte value and will be an int, SIF32 is a 16bit/2byte integer + the fractional part in 16bits/2bytes. (see P13 and P43 of Advanced User Guide) Link to comment Share on other sites More sharing options...
MarkStallen Posted August 12, 2021 Author Report Share Posted August 12, 2021 If I use SD and FLT32 or 0x and FLT64 then they both give 0.0000000 If I list the Lvars with FSUIPC then the value = 1576.3274 I really don't understand because all my other lvars are working, but as soon as it's more than one byte it doesn't. in my ini : [LvarOffsets] 0=A32NX_BRAKES_HOT=UB66C1 1=A32NX_AUTOBRAKES_DECEL_LIGHT=UB66C2 2=A32NX_AUTOBRAKES_ARMED_MODE=UB66C3 3=A32NX_MASTER_WARNING=UB66C4 4=A32NX_MASTER_CAUTION=UB66C5 5=A32NX_PARK_BRAKE_LEVER_POS=UB66C6 6=A32NX_ECAM_SD_CURRENT_PAGE_INDEX=UB66C8 7=XMLVAR_Baro1_Mode=UB66C9 8=LANDING_2_Retracted=UB66D0 9=LANDING_3_Retracted=UB66D1 10=LIGHTING_LANDING_1=UB66D2 11=LIGHTING_LANDING_2=UB66D3 12=LIGHTING_LANDING_3=UB66D4 13=A32NX_HYD_BRAKE_ALTN_ACC_PRESS=0x66D5 Link to comment Share on other sites More sharing options...
John Dowson Posted August 12, 2021 Report Share Posted August 12, 2021 (edited) 2 hours ago, MarkStallen said: 13=A32NX_HYD_BRAKE_ALTN_ACC_PRESS=0x66D5 Ah...if using 8 bytes, then the offset needs to be aligned on an 8-byte boundary, e.g. last digit must be 0 or 8. Similarly, if its 4 bytes, ir must be aligned on a 4-byte boundary, eg last digit 0, 4, 8, or C, and similarly for 2 bytes (last digit 0,2,4,6,8,A,C,E). I will add this to the Advanced User guide. Try the following: Quote [LvarOffsets] 0=A32NX_BRAKES_HOT=UB66C0 1=A32NX_AUTOBRAKES_DECEL_LIGHT=UB66C1 2=A32NX_AUTOBRAKES_ARMED_MODE=UB66C2 3=A32NX_MASTER_WARNING=UB66C3 4=A32NX_MASTER_CAUTION=UB66C4 5=A32NX_PARK_BRAKE_LEVER_POS=UB66C5 6=A32NX_ECAM_SD_CURRENT_PAGE_INDEX=UB66C6 7=XMLVAR_Baro1_Mode=UB66C7 8=LANDING_2_Retracted=UB66C8 9=LANDING_3_Retracted=UB66C9 10=LIGHTING_LANDING_1=UB66CA 11=LIGHTING_LANDING_2=UB66CB 12=LIGHTING_LANDING_3=UB66CC 13=A32NX_HYD_BRAKE_ALTN_ACC_PRESS=0x66D0 Then monitor 0x66D0 as a FLT64. John Edited August 12, 2021 by John Dowson Link to comment Share on other sites More sharing options...
MarkStallen Posted August 16, 2021 Author Report Share Posted August 16, 2021 Thank you, that works. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now