Code: Select all
led_AOAhigh = hw_output_add("ARDUINO_NANO_A_D6", false)
function new_data_fsx(AOA)
hw_output_set(led_AOAhigh, AOA >=8.8)
end
fsx_variable_subscribe("INCIDENCE ALPHA", "Degrees", new_data_fsx)
Code: Select all
led_AOAhigh = hw_output_add("ARDUINO_NANO_A_D6", false)
function new_data_fsx(AOA)
hw_output_set(led_AOAhigh, AOA >=8.8)
end
fsx_variable_subscribe("INCIDENCE ALPHA", "Degrees", new_data_fsx)
Code: Select all
hw_output_set(led_AOAnorm, AOA >=6.9 and AOA <=9.3)
Code: Select all
led_AOAlow = hw_output_add("ARDUINO_NANO_A_D2", false) -- Fast, Red Chevron
led_AOAnorm = hw_output_add("ARDUINO_NANO_A_D4", false) -- On Speed, Amber Donut
led_AOAhigh = hw_output_add("ARDUINO_NANO_A_D6", false) -- Slow, Green Chevron
function new_data_fsx(AOA)
hw_output_set(led_AOAhigh, AOA >=11.1)
hw_output_set(led_AOAnorm, AOA >=9.75 and AOA <=11.53)
hw_output_set(led_AOAlow, AOA <=10.17 and AOA >5.0)
end
fsx_variable_subscribe("INCIDENCE ALPHA", "Degrees", new_data_fsx)