February 17, 20215 yr I am integrating the GTN750s into the LR King Air C90B. Everything works except for one thing. The CDI needle does not show up in RNAV mode. It does show up in VLOC mode. The CDI button works in sync with the sim. I removed the GNS 530 and 430 but kept the Lua code so that I can "turn them on" before the GTN's. GTN's are now powered from the Avionics bus, as are the phantom GNSs. 1. Am I correct to assume that the GTNs need the original GNSs to be there in some way so that the AP can control the plane from it? 2. Do I have to enable support sim GPS commands for this to work? I actually have tried it both ways. Additionally if I turn the GPS's on using DataRef Tool and cycle power to the GTN's the CDI indicator eventually does show up. I am attaching my ini file. https://drive.google.com/file/d/18nSEDXXM4VGjULPnYrxhg0c0s0m0KpCU/view?usp=sharing
February 17, 20215 yr Hi, The GTN doesn't require there is any stock GPS in the panel at all. The "Sim GPS commands" is only if you want to command the GTN in using the stock XP11 GPS commands. If not, the GTN publishes its own set of commands, in addition to keyboard shortcuts and direct mouse control of course. Now what do you mean by "does not show up"? Is it disappearing from the gauge (vanishing) or is it parked to the left/right? NB: your link requires login in, I can't see your files.
February 17, 20215 yr Author It completely disappears from the gauge as in gone... And furthermore the AP does not follow the FlightPlan when NAV mode is activated. Try this link for the ini file: https://drive.google.com/file/d/18nSEDXXM4VGjULPnYrxhg0c0s0m0KpCU/view?usp=sharing Edited February 17, 20215 yr by pilotmarcog
February 18, 20215 yr 2 hours ago, pilotmarcog said: Try this link for the ini file: Can you post the INI file content directly in your message in a "spoiler" block (the eye icon next to the font drop down).
February 18, 20215 yr Author Spoiler [GTN] ; comma separated list of gauges gauges = GTN_750_1, GTN_750_2 [GTN_750_1] ; comma separated list of render targets. drawto = WINDOW, PANELS ; is the master device if true. MasterDevice = true ; aviation db: 0: nav_db2_grm, 1: nav_db2, 2: nav_heli_db2_grmn, 3: nav_heli_db2 NavDbType = 1 ; connects to: 'PFC_GTN' or any '#PID' (#D067 for PFC_GTN) ; no value connects to first found, 'OFF' disables connection. HardwareDevice = ; hardware selector number or -1 to disable. HardwareIdx = -1 ; enables device failures if true. UseFailures = true ; override VLOC NAV# (1 or 2) or use 'RadiosPair' (0). AutoNavSource = 1 ; sets device power source: ; AUTO,ALWAYS_ON,AVIONICS_BUS,MAIN_BATTERY,BUS_1,BUS_2,BUS_3,BUS_4,BUS_5,BUS_6 PowerSource = AVIONICS_BUS ; sets ownship icon type: ; AUTO,LOW_WING,HIGH_WING,KIT_PLANE,TURBOPROP,TWIN_ENGINE,SINGLE_JET,BUSINESS_JET,2BLADES,3BLADES,4BLADES,ARROW OwnshipIcon = TURBOPROP ; sets fuel type: AUTO,AVGAS,JETA,JETB,DIESEL FuelType = JETA ; sets TAWS type: TERR,TAWS_B,TAWS_A TawsMode = TAWS_A ; connects GPS to HSI course motor if true. LinkCrs = true ; connects GPS to VOR if true. LinkVor = true ; sync NAV/GPS switch to CDI Mode if true (SIM -> GPS). AutoCdiSrc = true ; updates Simulator GPS flight plan if true. LinkSimGps = true ; connects GPS to Autopilot if true. LinkOto = true ; connects GPS to HSI if true. LinkHsi = true ; connects GPS to OBS input if true (LinkHsi/OBS or AutoNavSource/OBS). LinkObs = false ; connects GPS to Copilot side if true. CopilotSide = false ; override GPS Unit# (1 or 2) or use 'this unit#' (0) (XPL 10.30+ for GPS2). AutoGpsSource = 1 ; sync CDI Mode to NAV/GPS switch if true (GPS -> SIM). AutoNavGps = true ; selects COM/NAV Radios '1' or '2'. RadiosPair = 1 ; uses computer time if true, simulator time otherwise. ComputerTime = false ; HSI lateral deviation scale factor. CdiScale = 1 ; HSI vertical deviation scale factor. GsiScale = 1 ; connects GPS to Audio Panel if true. UseAudioPanel = true ; connects GPS to Transponder if true. UseTransponder = true ; enables Shadin Air Data computer if true. UseAirData = true ; enables Shadin Fuel Data computer if true. UseFuelData = true ; enables RYAN 9900BX TCAD if true. UseRyanTcad = true ; sets TCAD sound alerts volume in percent: 0 to 100. RyanTcadVolume = 50 ; sets TCAD maximum number of targets to X-Plane AI Traffic Count. UseTcadAiCount = true ; uses Simulator GPS commands if true. UseSimGpsCmds = false ; saves the active route to flight plan file if true (.fms). AutoSavePln = false ; selects transponder VFR code: USE_CODE,VFR_US,VFR_EUR VFRmode = VFR_US ; sets transponder VFR code (octal default: #1200). VFRcode = #1200 ; sets TAWS surface: HARD,HARD_SOFT,WATER,ANY TawsSurface = HARD_SOFT ; TAWS minimum runway length (feet) TawsMinLength = 40 ; TAWS approach air speed (knots) or -1 (auto detect Vref: 124) TawsApprSpeed = -1 ; TAWS flap extension speed (knots) or -1 (auto detect Vfe: 184) TawsFlapSpeed = -1 ; TAWS gear extension speed (knots) or -1 (auto detect Vle: 182) TawsGearSpeed = -1 ; reduce screen update rate by half. ReduceRate = false ; integral lighting rheostat index (0 to 3) or percent (-100 to 0) Rheostat.Display = -100 ; integral lighting rheostat index (0 to 3) or percent (-100 to 0) Rheostat.Buttons = -75 ; sets voice type: MALE,FEMALE VoicePref = FEMALE ; sets master sound volume in percent: 0 to 100. MasterVolume = 100 ; mute sound when simulator window looses focus if false. NoAudioFocus = false ; sets trainer process CPU: 1 to 32, 0: last core, -1: auto, -2: all (GTN_6620+). CpuAffinity = -1 ; main: CDI Key (0: disable) AFMS.cdi_key = ; main: Selected Course for GPS (0: disable) AFMS.sel_crs_gps = ; main: Selected Course for VLOC (0: disable) AFMS.sel_crs_vloc = ; main: V-Flag State (1: declutter) AFMS.v_flag_declutter = ; main: GPS Selected (0: prompt) AFMS.gps_selected = ; main: Engage Autopilot APPR (1: enabled) AFMS.auto_nav_appr = ; main: Airspace Labels (0: disable) AFMS.airspace_labels = ; nav : Mark On Target (1: enable) AFMS.mark_on_target = ; nav : RF Procedure Legs (1: enable) AFMS.rf_procedure_legs = ; vnav: Vertical Navigation Type (0: VCALC, 1: VNAV) AFMS.vnav_enabled = ; vnav: Transition To Approach (0: disable) AFMS.vnav_trans_to_appr = ; vnav: VDI Scale (default: 500ft) AFMS.vnav_vdi_scale_factor = ; vnav: Transition Altitude (default: FL180) AFMS.vnav_trans_altitude = [GTN_750_1.WINDOW] ; display window if true. visible = false ; show screen only gauge if true. nobezel = false ; display type: WINDOW,PANEL2D,PANEL3D,PANELS frame.type = WINDOW ; display position and dimension (left,top,width,height) frame.rect = 1613,1175,830,790 ; screen only border size (pixels). border.size = 0 ; screen only border color (#RGB or #RGBA). border.rgba = #000000 ; enable mouse clickspots if true, disable if false (use SHIFT to override) usemouse = true ; left mouse button on the screen toggles popup window if true (requires SHIFT+left mouse button). popleft = false ; right mouse button on the screen toggles popup window if true (requires XP11.1). popright = true ; VR mode position and dimension (left,top,width,height) (requires XP11.20) vrmode.rect = 0,395,415,395 ; display as popout window if true (requires XP11.1). undocked = false ; display mouse tooltips if true. tooltips = false ; freeze display position if true. locked = false ; auto hide in external view if true. autohide = false [GTN_750_1.PANELS] ; display window if true. visible = true ; show screen only gauge if true. nobezel = true ; display type: WINDOW,PANEL2D,PANEL3D,PANELS frame.type = PANEL3D ; display position and dimension (left,top,width,height) frame.rect = 1022,1023,512,628 ; screen only border size (pixels). border.size = 0 ; screen only border color (#RGB or #RGBA). border.rgba = #000000 ; enable mouse clickspots if true, disable if false (use SHIFT to override) usemouse = true ; left mouse button on the screen toggles popup window if true (requires SHIFT+left mouse button). popleft = false ; right mouse button on the screen toggles popup window if true (requires XP11.1). popright = true [GTN_750_2] ; comma separated list of read only settings. locked = CopilotSide, MasterDevice, FuelType, LinkCrs, UseAudioPanel, UseTransponder, LinkOto, LinkHsi, LinkObs, LinkVor, AutoGpsSource ; comma separated list of render targets. drawto = WINDOW, PANELS ; is the master device if true. MasterDevice = false ; aviation db: 0: nav_db2_grm, 1: nav_db2, 2: nav_heli_db2_grmn, 3: nav_heli_db2 NavDbType = 1 ; connects to: 'PFC_GTN' or any '#PID' (#D067 for PFC_GTN) ; no value connects to first found, 'OFF' disables connection. HardwareDevice = ; hardware selector number or -1 to disable. HardwareIdx = -1 AutoNavSource = 2 AutoCdiSrc = true PowerSource = AVIONICS_BUS UseFailures = true [GTN_750_2.WINDOW] ; display window if true. visible = false ; show screen only gauge if true. nobezel = false ; display type: WINDOW,PANEL2D,PANEL3D,PANELS frame.type = WINDOW ; display position and dimension (left,top,width,height) frame.rect = 1557,1227,830,790 ; screen only border size (pixels). border.size = 0 ; screen only border color (#RGB or #RGBA). border.rgba = #000000 ; enable mouse clickspots if true, disable if false (use SHIFT to override) usemouse = true ; left mouse button on the screen toggles popup window if true (requires SHIFT+left mouse button). popleft = false ; right mouse button on the screen toggles popup window if true (requires XP11.1). popright = true ; VR mode position and dimension (left,top,width,height) (requires XP11.20) vrmode.rect = 0,395,415,395 ; display as popout window if true (requires XP11.1). undocked = false ; display mouse tooltips if true. tooltips = false ; freeze display position if true. locked = false ; auto hide in external view if true. autohide = false [GTN_750_2.PANELS] ; display window if true. visible = true ; show screen only gauge if true. nobezel = true ; display type: WINDOW,PANEL2D,PANEL3D,PANELS frame.type = PANEL3D ; display position and dimension (left,top,width,height) frame.rect = 1535,1023,512,628 ; screen only border size (pixels). border.size = 0 ; screen only border color (#RGB or #RGBA). border.rgba = #000000 ; enable mouse clickspots if true, disable if false (use SHIFT to override) usemouse = true ; left mouse button on the screen toggles popup window if true (requires SHIFT+left mouse button). popleft = false ; right mouse button on the screen toggles popup window if true (requires XP11.1). popright = true Here are the contents of the ini file Edited February 18, 20215 yr by pilotmarcog Add text
February 19, 20215 yr Author @RXP I have been doing some more testing and I think that the issue is related to dref 'sim/cockpit2/radios/actuators/gps_power' and 'sim/cockpit2/radios/actuators/gps2_power.' Whenever these drefs are set (value = 1) the CDI needle appears in the EHSI. Whenever they are cleared (value = 0) the CDI disappears. Any ideas or suggestions?
February 19, 20215 yr I've been looking closer to the C90B files (not tried in sim). It is puzzling because there is no lateral deviation needle provided for the EHSI (you can see easily in planemaker), but only for EADI. Regardless of this, there is LUA code driving the show/hide logic for the lateral needle which is not simply based only on raw dataref values. You can see this here: C90_sys.lua Spoiler simDR_radio_nav_type = find_dataref("sim/cockpit2/radios/indicators/nav_type") simDR_hsi_source_sel_pilot = find_dataref("sim/cockpit2/radios/actuators/HSI_source_select_pilot") simDR_hsi_display_horizontal = find_dataref("sim/cockpit2/radios/indicators/hsi_display_horizontal_pilot") C90DR_avionics_lat_dev_dispay_status = create_dataref("laminar/c90/avionics/display/lateral_deviation", "number") C90_sys60_avionics.lua Spoiler ----- LATERAL DEVIATION DISPLAY STATUS FOR EADI GENERIC INSTRUMENT ---------------------- function C90_radio_lat_dev_type() C90DR_avionics_lat_dev_dispay_status = 0 -- HORIZONTAL SIGNAL IS BEING RECEIVED if simDR_hsi_display_horizontal == 1 then -- NAV 1 if simDR_hsi_source_sel_pilot == 0 then -- VOR if simDR_radio_nav_type[0] == 4 then -- SET THE DISPLAY STATUS C90DR_avionics_lat_dev_dispay_status = 1 -- LOC elseif simDR_radio_nav_type[0] == 8 or simDR_radio_nav_type[0] == 16 or simDR_radio_nav_type[0] == 40 then -- SET THE DISPLAY STATUS C90DR_avionics_lat_dev_dispay_status = 3 end -- NAV 2 elseif simDR_hsi_source_sel_pilot == 1 then -- VOR if simDR_radio_nav_type[1] == 4 then -- SET THE DISPLAY STATUS C90DR_avionics_lat_dev_dispay_status = 2 -- LOC elseif simDR_radio_nav_type[1] == 8 or simDR_radio_nav_type[1] == 16 or simDR_radio_nav_type[1] == 40 then -- SET THE DISPLAY STATUS C90DR_avionics_lat_dev_dispay_status = 4 end end end end NB: for what it's worth, PlaneMaker also shows GPS1 and GPS2 are connected to BUS3 (see: Systems | Bus 2 tab), and BUS3 is feed from GEN2 (see: Systems | Electrical 1 tab). This doesn't tell me why is it you can see a lateral deviation on the EHSI with gps_power dataref though ?! Unless this is hard coded somehow in the model/obj/acf files?! Is the lateral deviation showing ok in the EADI ?
February 19, 20215 yr Author I think you are on the right track as far as an explanation but I managed to fix it by creating a lua function that sets the drefs in question every time the avionics are switched on. So far seems to work every time. I will continue to delve deeper into the other code so that I can better understand the logic. Thanks,
February 19, 20215 yr Author 14 minutes ago, RXP said: s the lateral deviation showing ok in the EADI ? NO. It does not work at all and you cannot engage AP when it doesn't show up. It's like it depends on the power being on to the non-existant GPS's Edited February 19, 20215 yr by pilotmarcog
February 19, 20215 yr 7 minutes ago, pilotmarcog said: NO. It does not work at all and you cannot engage AP when it doesn't show up. It's like it depends on the power being on to the non-existant GPS's I believe this is a bug then in the XP11 systems logic where it doesn't take in account 3rd party GPS which are using "override_gps"
Archived
This topic is now archived and is closed to further replies.