I am missing something very simple with my current question, I am very sure and I appreciate any help figuring out my mistake.
I am able to subscribe to MSFS variables with no issues, here's an example that works perfectly, for me:
fs2020_variable_subscribe("INDICATED ALTITUDE", "Feet", current_altitude)
However, I can't get these L: variable subscriptions to work in Air Manager, IE: always displays 0 even that when looking at SPAD.neXt it clearly shows there is a value for each:
fs2020_variable_subscribe("L:H145_SDK_AFCS_CRHT_BUG", "Number", display_current_ap_crht_bug)
fs2020_variable_subscribe("L:H145_SDK_AFCS_IAS_BUG", "Knots", display_ap_ias_bug)
Here is the relevant part of the code, any suggestions??
Code: Select all
my_text_current_ap_crht_value = txt_add("---", "size:" .. font_size_35 .. "; color: " .. value_color .. "; halign: " .. halign_1 .. ";", 190, 95, 100, 30)
function display_current_ap_crht_bug(ap_crht)
txt_set(my_text_current_ap_crht_value, ap_crht)
print(" CRHT: " .. ap_crht)
end
fs2020_variable_subscribe("L:H145_SDK_AFCS_CRHT", "Number", display_current_ap_crht_bug)
Thanks for the help!!