示例#1
0
        public bool Start()
        {
            end     = false;
            monitor = new object();

            // Start Data Procesing (this must be done before subscribing to image package!)
            RTDPSettings.ReadXML();
            UASProperties.ReadXML();
            rtdp = new RTDP(this);

            inputThermalQueue  = new Queue <string>();
            inputMetadataQueue = new Queue <string>();

            nPacketProcess = 0;

            // CurrentDirectory is the Marea.exe directory
            tmpPath = Environment.CurrentDirectory + @"\..\..\Tmp\";
            if (!System.IO.Directory.Exists(tmpPath))
            {
                try
                {
                    System.IO.Directory.CreateDirectory(tmpPath);
                }
                catch
                {
                    end = true;
                }
            }

            //Subscribe to thermal images
            //container.SubscribeEvent("CC.NewThermalImage", this);
            RunRTDP();
            return(true);
        }
示例#2
0
        public bool Start()
        {
            end = false;
            monitor = new object();

            // Start Data Procesing (this must be done before subscribing to image package!)
            RTDPSettings.ReadXML();
            UASProperties.ReadXML();
            rtdp = new RTDP(this);

            inputThermalQueue = new Queue<string>();
            inputMetadataQueue = new Queue<string>();

            nPacketProcess = 0;

            // CurrentDirectory is the Marea.exe directory
            tmpPath = Environment.CurrentDirectory + @"\..\..\Tmp\";
            if (!System.IO.Directory.Exists(tmpPath))
            {
                try
                {
                    System.IO.Directory.CreateDirectory(tmpPath);
                }
                catch
                {
                    end = true;
                }
            }

            //Subscribe to thermal images
            //container.SubscribeEvent("CC.NewThermalImage", this);
            RunRTDP();
            return true;
        }