From 8dace9083f8c1c7ada80795100d13eda54c7acdc Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 3 Sep 2024 14:24:30 -0700 Subject: WIP: HSI to/from arrow --- app.mjs | 2 ++ profile.yaml | 12 +++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app.mjs b/app.mjs index 666b8c6..d6842cc 100755 --- a/app.mjs +++ b/app.mjs @@ -762,6 +762,8 @@ const renderHSI = (c, display, values) => { src = null; } const crs = src ? deg2Rad(values[src.crs]) : null; + const fromto = src ? values[src.fromto] : null; + console.log(fromto); let def = src ? Math.min(Math.max(values[src.def], -3), 3) : null; if (!isNumber(def)) { def = 0; diff --git a/profile.yaml b/profile.yaml index 68d48f5..9fa369c 100644 --- a/profile.yaml +++ b/profile.yaml @@ -187,22 +187,28 @@ - xplane_dataref: sim/cockpit2/radios/actuators/HSI_source_select_pilot # navigation source for HSI - xplane_dataref: sim/cockpit2/radios/indicators/hsi_hdef_dots_pilot - xplane_dataref: sim/cockpit2/radios/indicators/hsi_display_horizontal_pilot - - xplane_dataref: sim/cockpit/radios/gps_course_degtm + - xplane_dataref: sim/cockpit/radios/hsi_obs_deg_mag_pilot + - xplane_dataref: sim/cockpit/radios/gps_fromto - xplane_dataref: sim/cockpit2/radios/actuators/nav1_obs_deg_mag_pilot + - xplane_dataref: sim/cockpit/radios/nav1_fromto - xplane_dataref: sim/cockpit2/radios/actuators/nav2_obs_deg_mag_pilot + - xplane_dataref: sim/cockpit/radios/nav2_fromto navs: 2: crs: 5 + fromto: 6 def: 3 received: 4 color: magenta 0: - crs: 6 + crs: 7 + fromto: 8 def: 3 received: 4 color: '#2dfe54' 1: - crs: 7 + crs: 9 + fromto: 10 def: 3 received: 4 color: '#2dfe54' -- cgit v1.2.3-70-g09d2