DHC-4 Caribou - VOR2 Indicator - hardware doesnt work

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: russ, Ralph

Message
Author
AlyMac
Posts: 32
Joined: Mon Apr 05, 2021 3:12 pm

Re: DHC-4 Caribou - VOR2 Indicator - hardware doesnt work

#11 Post by AlyMac »

Hi Ralf,
My sincere apologies. I changed the name of the "Generic-VOR OBS dial hoping that it would change last night.
Here is the script I have-
side_user_prop = user_prop_add_enum("Position", "Pilot,Co-Pilot", "Pilot", "Choose the VOR position for X-Plane.")
vor_user_prop = user_prop_add_integer("VOR channel", 1, 2, 1, "Choose the VOR channel.")
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 vor_obs_dial_callback(direction)

if direction == 1 then
if user_prop_get(side_user_prop) == "Pilot" then
xpl_command("sim/radios/obs"..user_prop_get(vor_user_prop).."_down")
else
xpl_command("sim/radios/copilot_obs"..user_prop_get(vor_user_prop).."_down")
end
fsx_event("VOR"..user_prop_get(vor_user_prop).."_OBI_DEC")
fs2020_event("VOR"..user_prop_get(vor_user_prop).."_OBI_DEC")
else
if user_prop_get(side_user_prop) == "Pilot" then
xpl_command("sim/radios/obs"..user_prop_get(vor_user_prop).."_up")
else
xpl_command("sim/radios/copilot_obs"..user_prop_get(vor_user_prop).."_up")
end
fsx_event("VOR"..user_prop_get(vor_user_prop).."_OBI_INC")
fs2020_event("VOR"..user_prop_get(vor_user_prop).."_OBI_INC")
end

end

hw_dial_add("VOR OBS dial", user_prop_get(encoder_type_prop), 3, vor_obs_dial_callback)

SimPassion
Posts: 5346
Joined: Thu Jul 27, 2017 12:22 am

Re: DHC-4 Caribou - VOR2 Indicator - hardware doesnt work

#12 Post by SimPassion »

Hi @AlyMac

at first, I would mention I'm not Ralph but rather SimPassion

please to try and figure out how to properly post script only between code tags, please again watch carefully the screenshot I've posted

So, have you tried with "Pilot" selection on the Air Manager User Properties pane ???

AlyMac
Posts: 32
Joined: Mon Apr 05, 2021 3:12 pm

Re: DHC-4 Caribou - VOR2 Indicator - hardware doesnt work

#13 Post by AlyMac »

Hi SP,
Thanks for the reply. I guess there is something inside the script that I need to change to get the gauge to work with the hardware. I'll try to figure it out today

Post Reply