OK, for anyone interested, I coded an Air Manager solution that is working for me.
I created a generic switch that sets the LVARS. Here is my code to disable or re-enable the GNS430. Simply change the 430 to 530 as needed. I do hope this helps some folks. Thanks for reading.
function switch_click_callback(position)
if position == 0 then
switch_set_position(switch_id, 1)
fs2020_variable_write("L:XMLVAR_GPS_DISABLED_AS430_1", "Enum", 1)
elseif position == 1 then
switch_set_position(switch_id, 0)
fs2020_variable_write("L:XMLVAR_GPS_DISABLED_AS430_1", "Enum", 0)
end
end
I created a generic switch that sets the LVARS. Here is my code to disable or re-enable the GNS430. Simply change the 430 to 530 as needed. I do hope this helps some folks. Thanks for reading.
function switch_click_callback(position)
if position == 0 then
switch_set_position(switch_id, 1)
fs2020_variable_write("L:XMLVAR_GPS_DISABLED_AS430_1", "Enum", 1)
elseif position == 1 then
switch_set_position(switch_id, 0)
fs2020_variable_write("L:XMLVAR_GPS_DISABLED_AS430_1", "Enum", 0)
end
end