[EDIT] Also checked working correctly with the JustFlight C152. I don't have any other aircraft addon installed from the mentioned not working list
As we see below, from the hardware "Generic Altimeter dial" script, the barometer up and down is used to increase and decrease the value in the Kollsman window, it could occurs some aircraft designer don't used the proper available standard dataref from X-Plane which are "sim/cockpit/misc/barometer_setting" or "sim/cockpit2/gauges/actuators/barometer_setting_in_hg_pilot" and "sim/cockpit2/gauges/actuators/barometer_setting_in_hg_copilot"
Code: Select all
side_user_prop = user_prop_add_enum("Position", "Pilot,Co-Pilot", "Pilot", "Choose the altimeter position for X-Plane.")
encoder_type_prop = user_prop_add_enum("Encoder type", "TYPE_1_DETENT_PER_PULSE,TYPE_2_DETENT_PER_PULSE,TYPE_4_DETENT_PER_PULSE", "TYPE_2_DETENT_PER_PULSE", "What type of encoder do you have, type 2 is most common.")
function altimeter_dial_callback(direction)
if direction == 1 then
if user_prop_get(side_user_prop) == "Pilot" then
xpl_command("sim/instruments/barometer_down")
else
xpl_command("sim/instruments/barometer_copilot_down")
end
fsx_event("KOHLSMAN_DEC")
fs2020_event("KOHLSMAN_DEC")
else
if user_prop_get(side_user_prop) == "Pilot" then
xpl_command("sim/instruments/barometer_up")
else
xpl_command("sim/instruments/barometer_copilot_up")
end
fsx_event("KOHLSMAN_INC")
fs2020_event("KOHLSMAN_INC")
end
end
hw_dial_add("Altimeter dial", user_prop_get(encoder_type_prop), 3, altimeter_dial_callback)
hw_button_add("Reset pressure", function()
xpl_command("sim/instruments/barometer_2992")
fsx_event("BAROMETRIC")
fs2020_event("BAROMETRIC")
end)