aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2024-09-03 14:24:30 -0700
committerDeterminant <[email protected]>2024-09-03 14:24:30 -0700
commit8dace9083f8c1c7ada80795100d13eda54c7acdc (patch)
tree8dc9bf6872d3fa318024084fb2a9387eca78d29d
parent02f63e8356ee5e3500507a588ef0afc41d75630b (diff)
WIP: HSI to/from arrow
-rwxr-xr-xapp.mjs2
-rw-r--r--profile.yaml12
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'