Local Variable Subscriptions

Peer support for Air Manager desktop users

Moderators: russ, Ralph

Post Reply
Message
Author
IrwinMFletcher
Posts: 22
Joined: Thu Mar 07, 2024 6:40 pm

Local Variable Subscriptions

#1 Post by IrwinMFletcher »

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

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)
If I go to the Subscriptions tab in Air Manager and manually enter a value and click Send the value is updated in the Console tab but on it's own it does not ever change from 0.

Thanks for the help!!

IrwinMFletcher
Posts: 22
Joined: Thu Mar 07, 2024 6:40 pm

Re: Local Variable Subscriptions

#2 Post by IrwinMFletcher »

I just can't figure this out, what in the world am I missing?

Post Reply