Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.
You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks!
if (value == 1) then ipc.writeLvar("L:AB_AP_ATHR",1)
ipc.writeSB(0x66C1, 0) // Here you define the Offset 66C1 to 0
offsetValue = ipc.readSB(0x66C1); // Here you read the Offset and save it to the Variable
if offsetValue ~= ATT_cur then // Here i not understand WHERE do you define or readout "ATT_cur" ( Logical it is the Value of the LVAR But how you define it ?)
ipc.writeLvar("L:AB_AP_ATHR", offsetValue) // Here you Write the current value of Offset 66C1 to the LVAR WHY ???