示例#1
0
 public override void RemoteExecute(UAVBase core)
 {
     base.RemoteExecute(core);
     //   remoteuavData = core.uavData;
     uavData = HierachyItem.NormaliseUavData(core);
     Console.WriteLine("Anzahl der Punkte die gesendet werden:"+uavData.Count);
 }
示例#2
0
        public override void ProcessResults(UAVBase core)
        {
            base.ProcessResults(core);
            try
            {
                foreach (UAVSingleParameter param in this.uavData)
                {
                    if (param.Value == null) param.Value = "";
                    UAVSingleParameter newparam = core.uavData.SilentUpdate(param.Name, param.Value, true);
                    if (newparam != null)
                    {
                       if (newparam.Parent is UAVStructure) ((UAVStructure)newparam.Parent).ValueChanged+=new UAVStructure.ValueChangedHandler(core.uavData.Value_ValueChanged);
                        newparam.Min = param.Min;
                        newparam.Max = param.Max;
                        newparam.updateRate = param.updateRate;
                        newparam.Parent = core.uavData.GetFromPath(param.Name.Substring(0,param.Name.LastIndexOf("\\")));
                        if (newparam.Parent == null) newparam.Parent = core;
                        if (newparam.Parent.Name == newparam.Name) newparam.Parent = core;
                    }
                    else
                    {
                        core.uavData.Add(param.Name, (UAVParameter)param.Clone());
                    }
                }
            }
            catch (Exception ex)
            {

            }
            core.initialised = true;
        }
示例#3
0
 public override void RemoteExecute(UAVBase core)
 {
     base.RemoteExecute(core);
     using (FileStream stream = File.OpenRead(Filename))
     {
         UAVBase.LoadValues(stream, core);
     }
 }
        public override void RemoteExecute(UAVBase core)
        {
            base.RemoteExecute(core);

            core.uavData[parameter.Name].Min = parameter.Min;
            core.uavData[parameter.Name].Max = parameter.Max;
            core.uavData[parameter.Name].updateRate = parameter.updateRate;
        }
示例#5
0
        public virtual void Send(UAVBase core)
        {
            /// Wird vom Kommandogeber (sender) aufgerufen
               ///
               ///

               SendDate = DateTime.UtcNow;
               guid = Guid.NewGuid().ToString();
        }
示例#6
0
 public override void RemoteExecute(UAVBase core)
 {
     base.RemoteExecute(core);
     Process p = Process.Start("/bin/kill ");
     p.StartInfo.Arguments = Convert.ToString(pid);
     p.StartInfo.UseShellExecute = false;
     p.StartInfo.RedirectStandardOutput = true;
     p.Start();
     pid = p.Id;
 }
示例#7
0
 public override void ProcessResults(UAVBase core)
 {
     base.ProcessResults(core);
     local = core;
     Process p = Process.Start("\\FFMpeg\\ffplay"," -i udp://"+targetip+"?localport="+targetPort);
     p.StartInfo.UseShellExecute = false;
     p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
     p.Exited += new EventHandler(Playerexited);
     p.Start();
 }
示例#8
0
        public override void RemoteExecute(UAVBase core)
        {
            base.RemoteExecute(core);
               ///Start Encoder
            Console.WriteLine("Execute ffmpeg ");
               /// ffmpeg -an -f video4linux2 -s 640x480 -r 15 -i /dev/video0 -vcodec libx264 -preset ultrafast -tune zerolatency -x264opts "vbv-maxrate=2000:vbv-bufsize=200:slice-max-size=1500" -f h264 udp://localhost:1234
            Process p = Process.Start("/usr/bin/ffmpeg"," -an -f video4linux2 -s "+width+"x"+height+" -r "+fps+" -i /dev/video0 -vcodec libx264 -preset ultrafast -tune zerolatency -x264opts \"vbv-maxrate=2000:vbv-bufsize=200:slice-max-size=1500\" -f h264 udp://"+targetip+":"+targetPort);
            p.StartInfo.UseShellExecute = false;
            p.StartInfo.RedirectStandardOutput = true;
            p.Exited += new EventHandler(p_Exited);
            p.Start();

               			pid = p.Id;
            Console.WriteLine("Video Stream Started");
        }
示例#9
0
 /// <summary>
 /// EndpunktImage einpacken
 /// </summary>
 /// <param name="core"></param>
 public override void Send(UAVBase core)
 {
     base.Send(core);
 }
示例#10
0
 /// <summary>
 /// Endpunktimage anwenden
 /// </summary>
 /// <param name="core"></param>
 public override void RemoteExecute(UAVBase core)
 {
     base.RemoteExecute(core);
 }
示例#11
0
 // Wird automatisch vom Kommandoempfänger aufgerufen
 public virtual void RemoteExecute(UAVBase core)
 {
     SendDate = DateTime.UtcNow;
 }
示例#12
0
 public virtual void ProcessResults(UAVBase core)
 {
     if (CommandCompleted != null) CommandCompleted();
 }
示例#13
0
 /// <summary>
 /// Endpunkte Abbild einpacken
 /// </summary>
 /// <param name="core"></param>
 public override void RemoteExecute(UAVBase core)
 {
     base.RemoteExecute(core);
      knownEndpoints = core.knownEndpoints;
 }
示例#14
0
 /// <summary>
 /// Endpunkt Abbild einpacken
 /// </summary>
 /// <param name="core"></param>
 public override void ProcessResults(UAVBase core)
 {
     base.ProcessResults(core);
 }
示例#15
0
 public override void RemoteExecute(UAVBase core)
 {
     base.RemoteExecute(core);
     files = Directory.GetFiles(Path, Pattern);
 }