From b0ebcf8910e476ffc5d041e9a7d9d354ab019d20 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Sat, 10 Dec 2016 09:42:52 -0500 Subject: [PATCH] fix nasal error, bugs --- A319-200-IAE-set.xml | 3 --- A320-200-IAE-set.xml | 3 --- A321-200-IAE-set.xml | 3 --- Models/Instruments/ND/ND.nas | 12 ++++++------ Nasal/systems.nas | 5 ----- 5 files changed, 6 insertions(+), 20 deletions(-) diff --git a/A319-200-IAE-set.xml b/A319-200-IAE-set.xml index 24c81252..4b931297 100644 --- a/A319-200-IAE-set.xml +++ b/A319-200-IAE-set.xml @@ -83,9 +83,6 @@ Aircraft/A320Family/Nasal/it-autoflight.nas - - Aircraft/A320Family/Nasal/hydraulics.nas - Aircraft/A320Family/Nasal/thrust.nas diff --git a/A320-200-IAE-set.xml b/A320-200-IAE-set.xml index c44725cf..6eec6d2d 100644 --- a/A320-200-IAE-set.xml +++ b/A320-200-IAE-set.xml @@ -83,9 +83,6 @@ Aircraft/A320Family/Nasal/it-autoflight.nas - - Aircraft/A320Family/Nasal/hydraulics.nas - Aircraft/A320Family/Nasal/thrust.nas diff --git a/A321-200-IAE-set.xml b/A321-200-IAE-set.xml index f3923fc5..f8e6173f 100644 --- a/A321-200-IAE-set.xml +++ b/A321-200-IAE-set.xml @@ -83,9 +83,6 @@ Aircraft/A320Family/Nasal/it-autoflight.nas - - Aircraft/A320Family/Nasal/hydraulics.nas - Aircraft/A320Family/Nasal/thrust.nas diff --git a/Models/Instruments/ND/ND.nas b/Models/Instruments/ND/ND.nas index 7554082f..b3fa7744 100644 --- a/Models/Instruments/ND/ND.nas +++ b/Models/Instruments/ND/ND.nas @@ -45,7 +45,7 @@ 'toggle_cur_ec': {path: '/nd/current-ec', value: 0, type: 'INT'}, # End of Climb dist. along route 'toggle_lvl_off_at': {path: '/nd/level-off-at', value: 0, type: 'INT'}, # Level-off point along route 'toggle_man_spd': {path: '/nd/managed-spd', value: 0, type: 'INT'}, # Managed Speed Mode - 'toggle_athr': {path: '/nd/athr', value: 0, type: 'INT'}, # Auto-thrust engaged + 'toggle_athr': {path: '/it-autoflight/output/athr', value: 0, type: 'INT'}, # Auto-thrust engaged 'toggle_spd_point_100': {path: '/nd/spd-change-raw-100', value: 0, type: 'INT'}, # Speed limit change point FL100 'toggle_spd_point_140': {path: '/nd/spd-change-raw-140', value: 0, type: 'INT'}, # Speed limit change point FL140 'toggle_spd_point_250': {path: '/nd/spd-change-raw-250', value: 0, type: 'INT'}, # Speed limit change point FL250 @@ -96,7 +96,7 @@ des_rwy: "/autopilot/route-manager/destination/runway", dep_rwy: "/autopilot/route-manager/departure/runway", fplan_active: 'autopilot/route-manager/active', - athr: '/flight-management/control/a-thrust', + athr: '/it-autoflight/output/athr', cur_wp: "/autopilot/route-manager/current-wp", vnav_node: "/autopilot/route-manager/vnav/", spd_node: "/autopilot/route-manager/spd/", @@ -106,8 +106,8 @@ adf2_frq: 'instrumentation/adf[1]/frequencies/selected-khz', nav1_frq: 'instrumentation/nav/frequencies/selected-mhz', nav2_frq: 'instrumentation/nav[1]/frequencies/selected-mhz', - lat_ctrl: 'flight-management/control/lat-ctrl', - ver_ctrl: "flight-management/control/ver-ctrl", + lat_ctrl: '/it-autoflight/output/lat', + ver_ctrl: "/it-autoflight/output/lat", spd_ctrl: "flight-management/control/spd-ctrl", }; @@ -144,7 +144,7 @@ setlistener(property_map.athr, func{ var athr = getprop(property_map.athr); - setprop('instrumentation/efis/nd/athr', (athr == 'eng')); + setprop('instrumentation/efis/nd/athr', (athr == '1')); }); setlistener(property_map.ver_ctrl, func{ @@ -159,7 +159,7 @@ setlistener(property_map.lat_ctrl, func{ var latctrl = getprop(property_map.lat_ctrl); - setprop('instrumentation/efis/nd/lnav', (latctrl == 'fmgc')); + setprop('instrumentation/efis/nd/lnav', (latctrl == '1')); }); setlistener("/instrumentation/mcdu/f-pln/disp/first", func{ diff --git a/Nasal/systems.nas b/Nasal/systems.nas index 08de71ab..55fcdc84 100644 --- a/Nasal/systems.nas +++ b/Nasal/systems.nas @@ -209,8 +209,3 @@ setlistener("/instrumentation/vertical-speed-indicator/indicated-speed-fpm", fun setprop("/instrumentation/vertical-speed-indicator/indicated-speed-fpm-pfd", getprop("/instrumentation/vertical-speed-indicator/indicated-speed-fpm") / 100); }); - -# Initialize Hydraulics -setlistener("/sim/signals/fdm-initialized", func { - hyd.hyd_init(); -}); \ No newline at end of file