From ee5eceb3dab1033d3d4c50c5714075ca57fbbd27 Mon Sep 17 00:00:00 2001 From: Anders Gidenstam Date: Sun, 3 Oct 2010 17:35:05 +0200 Subject: [PATCH 01/16] Updated mp_broadcast.nas: Added missing var keyword. --- Nasal/mp_broadcast.nas | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/Nasal/mp_broadcast.nas b/Nasal/mp_broadcast.nas index cabef40ac..8d508c056 100644 --- a/Nasal/mp_broadcast.nas +++ b/Nasal/mp_broadcast.nas @@ -45,24 +45,25 @@ BroadcastChannel.new = func (mpp_path, process, accept_predicate = nil, on_disconnect = nil, enable_send=1) { - obj = { parents : [BroadcastChannel], - mpp_path : mpp_path, - send_node : enable_send ? props.globals.getNode(mpp_path, 1) - : nil, - process_msg : process, - send_to_self : send_to_self, - accept_predicate : (accept_predicate != nil) ? accept_predicate : - func (p) { return 1; }, - on_disconnect : (on_disconnect != nil) ? on_disconnect : - func (p) { return; }, - # Internal state. - send_buf : [], - peers : {}, - loopid : 0, - PERIOD : 1.3, - last_time : 0.0, # For join handling. - last_send : 0.0, # For the send queue - SEND_TIME : 0.5 }; + var obj = { parents : [BroadcastChannel], + mpp_path : mpp_path, + send_node : enable_send ? props.globals.getNode(mpp_path, 1) + : nil, + process_msg : process, + send_to_self : send_to_self, + accept_predicate : + (accept_predicate != nil) ? accept_predicate + : func (p) { return 1; }, + on_disconnect : (on_disconnect != nil) ? on_disconnect + : func (p) { return; }, + # Internal state. + send_buf : [], + peers : {}, + loopid : 0, + PERIOD : 1.3, + last_time : 0.0, # For join handling. + last_send : 0.0, # For the send queue + SEND_TIME : 0.5 }; if (enable_send and (obj.send_node == nil)) { printlog("warn", "BroadcastChannel invalid send node."); From af740cd918873963e61a50426f7308d00ddd3cd9 Mon Sep 17 00:00:00 2001 From: Anders Gidenstam Date: Sun, 3 Oct 2010 18:25:06 +0200 Subject: [PATCH 02/16] Updated WalkView: Added missing var keywords. --- Aircraft/Generic/WalkView/walkview.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Aircraft/Generic/WalkView/walkview.nas b/Aircraft/Generic/WalkView/walkview.nas index 0824dc229..cecd081c6 100644 --- a/Aircraft/Generic/WalkView/walkview.nas +++ b/Aircraft/Generic/WalkView/walkview.nas @@ -362,7 +362,7 @@ var TO_DEG = 180/math.pi; var walkers = {}; var closerXY = func (pos, p1, p2) { - l1 = [p1[0] - pos[0], p1[1] - pos[1]]; - l2 = [p2[0] - pos[0], p2[1] - pos[1]]; + var l1 = [p1[0] - pos[0], p1[1] - pos[1]]; + var l2 = [p2[0] - pos[0], p2[1] - pos[1]]; return (l1[0]*l1[0] + l1[1]*l1[1]) - (l2[0]*l2[0] + l2[1]*l2[1]); } From 2dd56795279cd81ce3f9fb6511870abce9c70154 Mon Sep 17 00:00:00 2001 From: BARANGER Emmanuel Date: Tue, 5 Oct 2010 00:52:43 +0200 Subject: [PATCH 03/16] Merge branch 'master' of git://gitorious.org/fg/fgdata From d6f3b7a3754a7fa884cb91679c0dbacdf0d59b8b Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Tue, 5 Oct 2010 16:35:39 +0200 Subject: [PATCH 04/16] Fix the display dialog - Make the 2d-panel option visible - Add the menubar-autohide function --- gui/dialogs/display.xml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gui/dialogs/display.xml b/gui/dialogs/display.xml index bc7eccaa6..a2861d45e 100644 --- a/gui/dialogs/display.xml +++ b/gui/dialogs/display.xml @@ -42,13 +42,23 @@ - + + left /sim/panel/visibility dialog-apply - + + + + left + + /sim/menubar/autovisibility/enabled + + dialog-apply + + From d57d97e5ebd1226829576180619863a8f9079cac Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Tue, 5 Oct 2010 21:51:42 +0100 Subject: [PATCH 05/16] Correct VSI display animation. --- .../Instruments/kap140/KAP140TwoAxisAlt.xml | 40 +++++++++---------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/Aircraft/c172p/Instruments/kap140/KAP140TwoAxisAlt.xml b/Aircraft/c172p/Instruments/kap140/KAP140TwoAxisAlt.xml index 02ee2b61d..a9666f23c 100644 --- a/Aircraft/c172p/Instruments/kap140/KAP140TwoAxisAlt.xml +++ b/Aircraft/c172p/Instruments/kap140/KAP140TwoAxisAlt.xml @@ -279,7 +279,10 @@ properties' values. select vs-minus - vs-digits-minus + vs-digit2-minus + vs-digit3-minus + vs-digit4-minus + vs-digit5-minus @@ -287,15 +290,18 @@ properties' values. true - 0 /autopilot/KAP140/settings/target-pressure-rate + 0 select - vs-digits + vs-digit2 + vs-digit3 + vs-digit4 + vs-digit5 @@ -303,8 +309,8 @@ properties' values. true - 0 /autopilot/KAP140/settings/target-pressure-rate + 0 @@ -312,11 +318,10 @@ properties' values. textranslate vs-digit5 - /autopilot/KAP140/settings/target-pressure-rate - 0 /autopilot/KAP140/settings/target-pressure-rate + 0 /autopilot/KAP140/settings/target-pressure-rate @@ -331,11 +336,10 @@ properties' values. textranslate vs-digit4 - /autopilot/KAP140/settings/target-pressure-rate - 0 /autopilot/KAP140/settings/target-pressure-rate + 0 /autopilot/KAP140/settings/target-pressure-rate @@ -350,11 +354,10 @@ properties' values. textranslate vs-digit3 - /autopilot/KAP140/settings/target-pressure-rate - 0 /autopilot/KAP140/settings/target-pressure-rate + 0 /autopilot/KAP140/settings/target-pressure-rate @@ -369,11 +372,10 @@ properties' values. textranslate vs-digit2 - /autopilot/KAP140/settings/target-pressure-rate - 0 /autopilot/KAP140/settings/target-pressure-rate + 0 /autopilot/KAP140/settings/target-pressure-rate @@ -388,11 +390,10 @@ properties' values. textranslate vs-digit5-minus - /autopilot/KAP140/settings/target-pressure-rate - 0 /autopilot/KAP140/settings/target-pressure-rate + 0 /autopilot/KAP140/settings/target-pressure-rate @@ -407,11 +408,10 @@ properties' values. textranslate vs-digit4-minus - /autopilot/KAP140/settings/target-pressure-rate - 0 /autopilot/KAP140/settings/target-pressure-rate + 0 /autopilot/KAP140/settings/target-pressure-rate @@ -426,11 +426,10 @@ properties' values. textranslate vs-digit3-minus - /autopilot/KAP140/settings/target-pressure-rate - 0 /autopilot/KAP140/settings/target-pressure-rate + 0 /autopilot/KAP140/settings/target-pressure-rate @@ -445,11 +444,10 @@ properties' values. textranslate vs-digit2-minus - /autopilot/KAP140/settings/target-pressure-rate - 0 /autopilot/KAP140/settings/target-pressure-rate + 0 /autopilot/KAP140/settings/target-pressure-rate @@ -911,5 +909,5 @@ properties' values. - + From 083c9e9de60f74216e4f5a6da6f78014ca8af69f Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Thu, 7 Oct 2010 17:56:24 +0200 Subject: [PATCH 06/16] weather-dialog: show, if METAR is valid add a checkbox tied to the metar-valid property --- gui/dialogs/weather.xml | 3323 ++++++++++++++++++++------------------- 1 file changed, 1664 insertions(+), 1659 deletions(-) diff --git a/gui/dialogs/weather.xml b/gui/dialogs/weather.xml index 058e25879..b0e8b8a1a 100644 --- a/gui/dialogs/weather.xml +++ b/gui/dialogs/weather.xml @@ -1,1659 +1,1664 @@ - - - - - - weather - false - false - vbox - 3 - - - - hbox - 1 - - - true - - - - - - - - true - - - - - - - - hbox - 0 - - - - vbox - - vbox - 1 - - - - hbox - - - - - true - - - - - hbox - - table - - - - 0 - 1 - - - - - 0 - 2 - 80 - - - - - 0 - 3 - - - - - - - 1 - 1 - true - /environment/clouds/layer[4]/elevation-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 1 - 2 - 100 - true - /environment/clouds/layer[4]/coverage - clear - few - scattered - broken - overcast - cirrus - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 1 - 3 - true - /environment/clouds/layer[4]/thickness-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - - - - 2 - 1 - true - /environment/clouds/layer[3]/elevation-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 2 - 2 - 100 - true - /environment/clouds/layer[3]/coverage - clear - few - scattered - broken - overcast - cirrus - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 2 - 3 - true - /environment/clouds/layer[3]/thickness-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - - - - 3 - 1 - true - /environment/clouds/layer[2]/elevation-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 3 - 2 - 100 - true - /environment/clouds/layer[2]/coverage - clear - few - scattered - broken - overcast - cirrus - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 3 - 3 - true - /environment/clouds/layer[2]/thickness-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - - - - 4 - 1 - true - /environment/clouds/layer[1]/elevation-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 4 - 2 - 100 - true - /environment/clouds/layer[1]/coverage - clear - few - scattered - broken - overcast - cirrus - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 4 - 3 - true - /environment/clouds/layer[1]/thickness-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - - - - 5 - 1 - true - /environment/clouds/layer[0]/elevation-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 5 - 2 - 100 - true - false - /environment/clouds/layer[0]/coverage - clear - few - scattered - broken - overcast - cirrus - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 5 - 3 - true - /environment/clouds/layer[0]/thickness-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - - true - - - - - - - - vbox - 1 - - - hbox - - - - - true - - - - - hbox - fill - - table - - 0 - 0 - - - - - 0 - 1 - - - - - 1 - 0 - true - fill - /environment/metar/rain-norm - - dialog-apply - - true - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 1 - 1 - fill - /environment/metar/snow-norm - true - 30 - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 0 - 3 - - - - - pressure-sea-level-inhg - 1 - 3 - 50 - /environment/config/boundary/entry[0]/pressure-sea-level-inhg - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - true - - dialog-apply - pressure-sea-level-inhg - - - - - 2 - 0 - 3 - 30 - - - - - - true - - - - - - - - - true - - - - - vbox - - - - vbox - 1 - - - hbox - - - - - true - - - - - hbox - - table - - 0 - 0 - - - - - 0 - 1 - 2 - - - - - 0 - 3 - - - - - 0 - 4 - - - - - 0 - 5 - - - - - aloft-4-elevation-ft - 1 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[4]/elevation-ft - true - - dialog-apply - aloft-4-elevation-ft - - - - - aloft-4-wind-from-heading-deg - 1 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[4]/wind-from-heading-deg - true - - dialog-apply - aloft-4-wind-from-heading-deg - - - - - aloft-4-wind-speed-kt - 1 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[4]/wind-speed-kt - true - - dialog-apply - aloft-4-wind-speed-kt - - - - - aloft-4-visibility-m - 1 - 3 - 55 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[4]/visibility-m - true - - dialog-apply - aloft-4-visibility-m - - - - - aloft-4-temperature-degc - 1 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[4]/temperature-degc - true - - dialog-apply - aloft-4-temperature-degc - - - - - aloft-4-dewpoint-degc - 1 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[4]/dewpoint-degc - true - - dialog-apply - aloft-4-dewpoint-degc - - - - - aloft-3-elevation-ft - 2 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[3]/elevation-ft - true - - dialog-apply - aloft-3-elevation-ft - - - - - aloft-3-wind-from-heading-deg - 2 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[3]/wind-from-heading-deg - true - - dialog-apply - aloft-3-wind-from-heading-deg - - - - - aloft-3-wind-speed-kt - 2 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[3]/wind-speed-kt - true - - dialog-apply - aloft-3-wind-speed-kt - - - - - aloft-3-visibility-m - 2 - 3 - 55 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[3]/visibility-m - true - - dialog-apply - aloft-3-visibility-m - - - - - aloft-3-temperature-degc - 2 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[3]/temperature-degc - true - - dialog-apply - aloft-3-temperature-degc - - - - - aloft-3-dewpoint-degc - 2 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[3]/dewpoint-degc - true - - dialog-apply - aloft-3-dewpoint-degc - - - - - aloft-2-elevation-ft - 3 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[2]/elevation-ft - true - - dialog-apply - aloft-2-elevation-ft - - - - - aloft-2-wind-from-heading-deg - 3 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[2]/wind-from-heading-deg - true - - dialog-apply - aloft-2-wind-from-heading-deg - - - - - aloft-2-wind-speed-kt - 3 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[2]/wind-speed-kt - true - - dialog-apply - aloft-2-wind-speed-kt - - - - - aloft-2-visibility-m - 3 - 3 - 55 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[2]/visibility-m - true - - dialog-apply - aloft-2-visibility-m - - - - - aloft-2-temperature-degc - 3 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[2]/temperature-degc - true - - dialog-apply - aloft-2-temperature-degc - - - - - aloft-2-dewpoint-degc - 3 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[2]/dewpoint-degc - true - - dialog-apply - aloft-2-dewpoint-degc - - - - - aloft-1-elevation-ft - 4 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[1]/elevation-ft - true - - dialog-apply - aloft-1-elevation-ft - - - - - aloft-1-wind-from-heading-deg - 4 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[1]/wind-from-heading-deg - true - - dialog-apply - aloft-1-wind-from-heading-deg - - - - - aloft-1-wind-speed-kt - 4 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[1]/wind-speed-kt - true - - dialog-apply - aloft-1-wind-speed-kt - - - - - aloft-1-visibility-m - 4 - 3 - 55 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[1]/visibility-m - true - - dialog-apply - aloft-1-visibility-m - - - - - aloft-1-temperature-degc - 4 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[1]/temperature-degc - true - - dialog-apply - aloft-1-temperature-degc - - - - - aloft-1-dewpoint-degc - 4 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[1]/dewpoint-degc - true - - dialog-apply - aloft-1-dewpoint-degc - - - - - aloft-0-elevation-ft - 5 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/elevation-ft - true - - dialog-apply - aloft-0-elevation-ft - - - - - aloft-0-wind-from-heading-deg - 5 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/wind-from-heading-deg - true - - dialog-apply - aloft-0-wind-from-heading-deg - - - - - aloft-0-wind-speed-kt - 5 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/wind-speed-kt - true - - dialog-apply - aloft-0-wind-speed-kt - - - - - aloft-0-visibility-m - 5 - 3 - 55 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/visibility-m - true - - dialog-apply - aloft-0-visibility-m - - - - - aloft-0-temperature-degc - 5 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/temperature-degc - true - - dialog-apply - aloft-0-temperature-degc - - - - - aloft-0-dewpoint-degc - 5 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/dewpoint-degc - true - - dialog-apply - aloft-0-dewpoint-degc - - - - - true - - - - - - - - - vbox - 1 - - - hbox - - - - - true - - - - - hbox - - - table - - - 0 - 0 - - - - - 0 - 1 - 2 - - - - - 0 - 3 - - - - - 0 - 4 - - - - - 0 - 5 - - - - - boundary-1-elevation-ft - 1 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/elevation-ft - true - - dialog-apply - boundary-1-elevation-ft - - - - - boundary-1-wind-from-heading-deg - 1 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/wind-from-heading-deg - true - - dialog-apply - boundary-1-wind-from-heading-deg - - - - - boundary-1-wind-speed-kt - 1 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/wind-speed-kt - true - - dialog-apply - boundary-1-wind-speed-kt - - - - - boundary-1-visibility-m - 1 - 3 - 55 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/visibility-m - true - - dialog-apply - boundary-1-visibility-m - - - - - boundary-1-temperature-degc - 1 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/temperature-degc - true - - dialog-apply - boundary-1-temperature-degc - - - - - boundary-1-dewpoint-degc - 1 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/dewpoint-degc - true - - dialog-apply - boundary-1-dewpoint-degc - - - - - boundary-0-elevation-ft - 2 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/elevation-ft - true - - dialog-apply - boundary-0-elevation-ft - - - - - boundary-0-wind-from-heading-deg - 2 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/wind-from-heading-deg - true - - dialog-apply - boundary-0-wind-from-heading-deg - - - - - boundary-0-wind-speed-kt - 2 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/wind-speed-kt - true - - dialog-apply - boundary-0-wind-speed-kt - - - - - boundary-0-visibility-m - 2 - 3 - 55 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/visibility-m - true - - dialog-apply - boundary-0-visibility-m - - - - - boundary-0-temperature-degc - 2 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/temperature-degc - true - - dialog-apply - boundary-0-temperature-degc - - - - - boundary-0-dewpoint-degc - 2 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/dewpoint-degc - true - - dialog-apply - boundary-0-dewpoint-degc - - - - - true - - - - - - - - - - - - - vbox - - - - hbox - - - - - true - - - - - hbox - - - - - source-selection - fill - true - sim/gui/dialogs/weather-scenario/source-selection - - dialog-apply - source-selection - - - dialog-update - metar - - - - - metar-updates-winds-aloft - /environment/params/metar-updates-winds-aloft - - true - - dialog-apply - metar-updates-winds-aloft - - aloft - - - - - - description - fill - true - 180 - 60 - 20 - false - true - true - sim/gui/dialogs/weather-scenario/description - - - - hbox - - - - - true - - - - - metar - fill - true - 180 - 50 - 20 - true - true - false - sim/gui/dialogs/weather-scenario/metar - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - - - - - - - - - + + + + + + weather + false + false + vbox + 3 + + + + hbox + 1 + + + true + + + + + + + + true + + + + + + + + hbox + 0 + + + + vbox + + vbox + 1 + + + + hbox + + + + + true + + + + + hbox + + table + + + + 0 + 1 + + + + + 0 + 2 + 80 + + + + + 0 + 3 + + + + + + + 1 + 1 + true + /environment/clouds/layer[4]/elevation-ft + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 1 + 2 + 100 + true + /environment/clouds/layer[4]/coverage + clear + few + scattered + broken + overcast + cirrus + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 1 + 3 + true + /environment/clouds/layer[4]/thickness-ft + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + + + + 2 + 1 + true + /environment/clouds/layer[3]/elevation-ft + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 2 + 2 + 100 + true + /environment/clouds/layer[3]/coverage + clear + few + scattered + broken + overcast + cirrus + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 2 + 3 + true + /environment/clouds/layer[3]/thickness-ft + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + + + + 3 + 1 + true + /environment/clouds/layer[2]/elevation-ft + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 3 + 2 + 100 + true + /environment/clouds/layer[2]/coverage + clear + few + scattered + broken + overcast + cirrus + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 3 + 3 + true + /environment/clouds/layer[2]/thickness-ft + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + + + + 4 + 1 + true + /environment/clouds/layer[1]/elevation-ft + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 4 + 2 + 100 + true + /environment/clouds/layer[1]/coverage + clear + few + scattered + broken + overcast + cirrus + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 4 + 3 + true + /environment/clouds/layer[1]/thickness-ft + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + + + + 5 + 1 + true + /environment/clouds/layer[0]/elevation-ft + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 5 + 2 + 100 + true + false + /environment/clouds/layer[0]/coverage + clear + few + scattered + broken + overcast + cirrus + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 5 + 3 + true + /environment/clouds/layer[0]/thickness-ft + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + + true + + + + + + + + vbox + 1 + + + hbox + + + + + true + + + + + hbox + fill + + table + + 0 + 0 + + + + + 0 + 1 + + + + + 1 + 0 + true + fill + /environment/metar/rain-norm + + dialog-apply + + true + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 1 + 1 + fill + /environment/metar/snow-norm + true + 30 + + dialog-apply + + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + 0 + 3 + + + + + pressure-sea-level-inhg + 1 + 3 + 50 + /environment/config/boundary/entry[0]/pressure-sea-level-inhg + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + true + + dialog-apply + pressure-sea-level-inhg + + + + + 2 + 0 + 3 + 30 + + + + + + true + + + + + + + + + true + + + + + vbox + + + + vbox + 1 + + + hbox + + + + + true + + + + + hbox + + table + + 0 + 0 + + + + + 0 + 1 + 2 + + + + + 0 + 3 + + + + + 0 + 4 + + + + + 0 + 5 + + + + + aloft-4-elevation-ft + 1 + 0 + 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[4]/elevation-ft + true + + dialog-apply + aloft-4-elevation-ft + + + + + aloft-4-wind-from-heading-deg + 1 + 1 + 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[4]/wind-from-heading-deg + true + + dialog-apply + aloft-4-wind-from-heading-deg + + + + + aloft-4-wind-speed-kt + 1 + 2 + 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[4]/wind-speed-kt + true + + dialog-apply + aloft-4-wind-speed-kt + + + + + aloft-4-visibility-m + 1 + 3 + 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[4]/visibility-m + true + + dialog-apply + aloft-4-visibility-m + + + + + aloft-4-temperature-degc + 1 + 4 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[4]/temperature-degc + true + + dialog-apply + aloft-4-temperature-degc + + + + + aloft-4-dewpoint-degc + 1 + 5 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[4]/dewpoint-degc + true + + dialog-apply + aloft-4-dewpoint-degc + + + + + aloft-3-elevation-ft + 2 + 0 + 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[3]/elevation-ft + true + + dialog-apply + aloft-3-elevation-ft + + + + + aloft-3-wind-from-heading-deg + 2 + 1 + 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[3]/wind-from-heading-deg + true + + dialog-apply + aloft-3-wind-from-heading-deg + + + + + aloft-3-wind-speed-kt + 2 + 2 + 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[3]/wind-speed-kt + true + + dialog-apply + aloft-3-wind-speed-kt + + + + + aloft-3-visibility-m + 2 + 3 + 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[3]/visibility-m + true + + dialog-apply + aloft-3-visibility-m + + + + + aloft-3-temperature-degc + 2 + 4 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[3]/temperature-degc + true + + dialog-apply + aloft-3-temperature-degc + + + + + aloft-3-dewpoint-degc + 2 + 5 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[3]/dewpoint-degc + true + + dialog-apply + aloft-3-dewpoint-degc + + + + + aloft-2-elevation-ft + 3 + 0 + 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[2]/elevation-ft + true + + dialog-apply + aloft-2-elevation-ft + + + + + aloft-2-wind-from-heading-deg + 3 + 1 + 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[2]/wind-from-heading-deg + true + + dialog-apply + aloft-2-wind-from-heading-deg + + + + + aloft-2-wind-speed-kt + 3 + 2 + 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[2]/wind-speed-kt + true + + dialog-apply + aloft-2-wind-speed-kt + + + + + aloft-2-visibility-m + 3 + 3 + 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[2]/visibility-m + true + + dialog-apply + aloft-2-visibility-m + + + + + aloft-2-temperature-degc + 3 + 4 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[2]/temperature-degc + true + + dialog-apply + aloft-2-temperature-degc + + + + + aloft-2-dewpoint-degc + 3 + 5 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[2]/dewpoint-degc + true + + dialog-apply + aloft-2-dewpoint-degc + + + + + aloft-1-elevation-ft + 4 + 0 + 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[1]/elevation-ft + true + + dialog-apply + aloft-1-elevation-ft + + + + + aloft-1-wind-from-heading-deg + 4 + 1 + 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[1]/wind-from-heading-deg + true + + dialog-apply + aloft-1-wind-from-heading-deg + + + + + aloft-1-wind-speed-kt + 4 + 2 + 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[1]/wind-speed-kt + true + + dialog-apply + aloft-1-wind-speed-kt + + + + + aloft-1-visibility-m + 4 + 3 + 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[1]/visibility-m + true + + dialog-apply + aloft-1-visibility-m + + + + + aloft-1-temperature-degc + 4 + 4 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[1]/temperature-degc + true + + dialog-apply + aloft-1-temperature-degc + + + + + aloft-1-dewpoint-degc + 4 + 5 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[1]/dewpoint-degc + true + + dialog-apply + aloft-1-dewpoint-degc + + + + + aloft-0-elevation-ft + 5 + 0 + 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[0]/elevation-ft + true + + dialog-apply + aloft-0-elevation-ft + + + + + aloft-0-wind-from-heading-deg + 5 + 1 + 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[0]/wind-from-heading-deg + true + + dialog-apply + aloft-0-wind-from-heading-deg + + + + + aloft-0-wind-speed-kt + 5 + 2 + 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[0]/wind-speed-kt + true + + dialog-apply + aloft-0-wind-speed-kt + + + + + aloft-0-visibility-m + 5 + 3 + 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[0]/visibility-m + true + + dialog-apply + aloft-0-visibility-m + + + + + aloft-0-temperature-degc + 5 + 4 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[0]/temperature-degc + true + + dialog-apply + aloft-0-temperature-degc + + + + + aloft-0-dewpoint-degc + 5 + 5 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/aloft/entry[0]/dewpoint-degc + true + + dialog-apply + aloft-0-dewpoint-degc + + + + + true + + + + + + + + + vbox + 1 + + + hbox + + + + + true + + + + + hbox + + + table + + + 0 + 0 + + + + + 0 + 1 + 2 + + + + + 0 + 3 + + + + + 0 + 4 + + + + + 0 + 5 + + + + + boundary-1-elevation-ft + 1 + 0 + 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[1]/elevation-ft + true + + dialog-apply + boundary-1-elevation-ft + + + + + boundary-1-wind-from-heading-deg + 1 + 1 + 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[1]/wind-from-heading-deg + true + + dialog-apply + boundary-1-wind-from-heading-deg + + + + + boundary-1-wind-speed-kt + 1 + 2 + 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[1]/wind-speed-kt + true + + dialog-apply + boundary-1-wind-speed-kt + + + + + boundary-1-visibility-m + 1 + 3 + 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[1]/visibility-m + true + + dialog-apply + boundary-1-visibility-m + + + + + boundary-1-temperature-degc + 1 + 4 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[1]/temperature-degc + true + + dialog-apply + boundary-1-temperature-degc + + + + + boundary-1-dewpoint-degc + 1 + 5 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[1]/dewpoint-degc + true + + dialog-apply + boundary-1-dewpoint-degc + + + + + boundary-0-elevation-ft + 2 + 0 + 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[0]/elevation-ft + true + + dialog-apply + boundary-0-elevation-ft + + + + + boundary-0-wind-from-heading-deg + 2 + 1 + 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[0]/wind-from-heading-deg + true + + dialog-apply + boundary-0-wind-from-heading-deg + + + + + boundary-0-wind-speed-kt + 2 + 2 + 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[0]/wind-speed-kt + true + + dialog-apply + boundary-0-wind-speed-kt + + + + + boundary-0-visibility-m + 2 + 3 + 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[0]/visibility-m + true + + dialog-apply + boundary-0-visibility-m + + + + + boundary-0-temperature-degc + 2 + 4 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[0]/temperature-degc + true + + dialog-apply + boundary-0-temperature-degc + + + + + boundary-0-dewpoint-degc + 2 + 5 + 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + /environment/config/boundary/entry[0]/dewpoint-degc + true + + dialog-apply + boundary-0-dewpoint-degc + + + + + true + + + + + + + + + + + + + vbox + + + + hbox + + + + + true + + + + + hbox + + + + + source-selection + fill + true + sim/gui/dialogs/weather-scenario/source-selection + + dialog-apply + source-selection + + + dialog-update + metar + + + + + metar-updates-winds-aloft + /environment/params/metar-updates-winds-aloft + + true + + dialog-apply + metar-updates-winds-aloft + + + + + + + description + fill + true + 180 + 60 + 20 + false + true + true + sim/gui/dialogs/weather-scenario/description + + + + hbox + + + + + true + + + /environment/metar/valid + + true + false + + + + + metar + fill + true + 180 + 50 + 20 + true + true + false + sim/gui/dialogs/weather-scenario/metar + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + + + + + + + + + + + + From 287f0f2dcfa62e61fa1a6249fb3ad70529786a9c Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Thu, 7 Oct 2010 17:57:59 +0200 Subject: [PATCH 07/16] Realwx: speed up startup interpolation -correct the order of the realwx and interpolation property rules -speed up the interpolation of sea-level-pressure --- Environment/metarinterpolator.xml | 2 +- preferences.xml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Environment/metarinterpolator.xml b/Environment/metarinterpolator.xml index 2c027ea10..c67cb2ab5 100644 --- a/Environment/metarinterpolator.xml +++ b/Environment/metarinterpolator.xml @@ -28,7 +28,7 @@ --> MetarController:pressure-sea-level-inhg noise-spike - 0.0003 + 0.006 /environment/metar/valid diff --git a/preferences.xml b/preferences.xml index bf2b8e90a..fcb3db031 100644 --- a/preferences.xml +++ b/preferences.xml @@ -290,14 +290,14 @@ Started September 2000 by David Megginson, david@megginson.com autopilot helpers Aircraft/Generic/generic-autopilot-helper.xml - - Environment Interpolation Rule - Environment/interpolator.xml - Environment METAR Interpolation Rule Environment/metarinterpolator.xml + + Environment Interpolation Rule + Environment/interpolator.xml + Aircraft/Generic/generic-instrumentation.xml From 0fcc99d9a3ca809f27689dcdd149f050dc6b4f96 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Thu, 7 Oct 2010 17:59:38 +0200 Subject: [PATCH 08/16] startup.nas: just check for a valid METAR and don't care if it's from realwx or static input. There is still a timing issue, probably we should wait for a valid METAR if realwx is enabled. --- Nasal/startup.nas | 2 -- 1 file changed, 2 deletions(-) diff --git a/Nasal/startup.nas b/Nasal/startup.nas index dddf1524f..d2d692a14 100644 --- a/Nasal/startup.nas +++ b/Nasal/startup.nas @@ -1,6 +1,4 @@ var set_runway_from_metar_wind = func { - if (!getprop("/environment/realwx/enabled")) - return printlog("info", "metar-rwy: no live weather"); if (!getprop("/environment/metar/valid")) return printlog("info", "metar-rwy: no valid metar"); if (!getprop("/sim/startup/options/airport")) From 50287bdee7ca85d0dec0600a377139a254ec67c4 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Thu, 7 Oct 2010 18:00:32 +0200 Subject: [PATCH 09/16] Remove clouds dialog from multikey The dialog is gone, use Global-Weather instead. --- Input/Keyboard/multikey.xml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Input/Keyboard/multikey.xml b/Input/Keyboard/multikey.xml index c6b0a1608..6b9e01307 100644 --- a/Input/Keyboard/multikey.xml +++ b/Input/Keyboard/multikey.xml @@ -89,16 +89,6 @@ - - c - Clouds - - - dialog-show - clouds - - - f Fuel and Payload @@ -241,7 +231,6 @@ nasal @@ -253,7 +242,6 @@ nasal @@ -265,7 +253,6 @@ nasal @@ -277,7 +264,6 @@ nasal From 66746acbab6b7d08a786c4f807047636a1b510e6 Mon Sep 17 00:00:00 2001 From: Anders Gidenstam Date: Sat, 9 Oct 2010 20:10:04 +0200 Subject: [PATCH 10/16] Updated mp_broadcast.nas: Added missing var keywords. --- Nasal/mp_broadcast.nas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Nasal/mp_broadcast.nas b/Nasal/mp_broadcast.nas index 8d508c056..702a3372d 100644 --- a/Nasal/mp_broadcast.nas +++ b/Nasal/mp_broadcast.nas @@ -233,10 +233,10 @@ Binary.decodeCoord = func (str) { # The same object is seldom used for both sending and receiving. var MessageChannel = {}; MessageChannel.new = func (n = nil, process = nil) { - obj = { parents : [MessageChannel], - node : n, - process_msg : process, - old : "" }; + var obj = { parents : [MessageChannel], + node : n, + process_msg : process, + old : "" }; return obj; } MessageChannel.update = func { From ee549e6524f25fd56dded435674b4535c76cf316 Mon Sep 17 00:00:00 2001 From: BARANGER Emmanuel Date: Sun, 10 Oct 2010 21:37:11 +0200 Subject: [PATCH 11/16] Merge branch 'master' of git://gitorious.org/fg/fgdata From 87688ddf6a34ca907f840f442965f1dea88a08cf Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 11 Oct 2010 10:52:21 +0100 Subject: [PATCH 12/16] Thorsten Brehm: fix position-in-air dialog when a parking position was previously specified. --- gui/dialogs/location-in-air.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/dialogs/location-in-air.xml b/gui/dialogs/location-in-air.xml index 63e104414..4e2fa953a 100644 --- a/gui/dialogs/location-in-air.xml +++ b/gui/dialogs/location-in-air.xml @@ -260,6 +260,8 @@ nasal