Local Variable Subscriptions

Hello,

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


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 in advance!!

Joe

Hi @irwinmfletcher9 ,

Thank you for your post! Your topic has been moved to a sub-category of the User Support Hub

The General Discussion category is meant for discussions that fall outside of our other sub-categories.

If you would like other users to help you with an issue you are experiencing in the sim, consider these User Support Hub categories for your future post:

Aircraft & Systems
ATC, Traffic & NAVAIDs
Crashes (CTDs)
Hardware & Peripherals
Install, Performance & Graphics
Scenery & Airports
User Interface & Activities
Virtual Reality (VR)
Weather & Live Weather
Miscellaneous