From 4866bfb66f77ab4645c2da8be336e23357f56b6c Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 24 Jun 2007 22:45:10 +0000 Subject: [PATCH] - shorter update intervals (ufo technology!) - only update the radar when the panel is actually visible --- Aircraft/ufo/Instruments/instrumentation.xml | 1 + Aircraft/ufo/ufo.nas | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/Aircraft/ufo/Instruments/instrumentation.xml b/Aircraft/ufo/Instruments/instrumentation.xml index 55ad01a60..9a832f8b3 100644 --- a/Aircraft/ufo/Instruments/instrumentation.xml +++ b/Aircraft/ufo/Instruments/instrumentation.xml @@ -105,6 +105,7 @@ radar 0 + 0 diff --git a/Aircraft/ufo/ufo.nas b/Aircraft/ufo/ufo.nas index 6f8d30af3..b5adca6af 100644 --- a/Aircraft/ufo/ufo.nas +++ b/Aircraft/ufo/ufo.nas @@ -1,4 +1,12 @@ +setlistener("/sim/panel/visibility", func { + setprop("/instrumentation/radar/serviceable", cmdarg().getValue()); +}, 1); + + + + + # maximum speed -----------------------------------------------------------------------------------