Esempio n. 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);
 }
Esempio n. 2
0
        public GpsDevice(HierachyItem owner)
        {
            GPS            = new GPSHandler();                                      //Initialize GPS handler
            GPS.TimeOut    = 5;                                                     //Set timeout to 5 seconds
            GPS.NewGPSFix += new GPSHandler.NewGPSFixHandler(this.GPSEventHandler); //Hook up GPS data events to a handle

            values = new MonitoredDictionary <string, UAVSingleParameter>(owner);
            if (!values.ContainsKey("lbRMCPosition"))
            {
                values.Add(new UAVParameter("lbRMCPosition", GPS.GPRMC.Position, null, null, urate));
            }
            if (!values.ContainsKey("lbRMCPositionLongitude"))
            {
                values.Add(new UAVParameter("lbRMCPositionLongitude", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbRMCPositionLatitude"))
            {
                values.Add(new UAVParameter("lbRMCPositionLatitude", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbRMCPositionUTM"))
            {
                values.Add(new UAVParameter("lbRMCPositionUTM", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbRMCCourse"))
            {
                values.Add(new UAVParameter("lbRMCCourse", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbRMCSpeed"))
            {
                values.Add(new UAVParameter("lbRMCSpeed", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbRMCTimeOfFix"))
            {
                values.Add(new UAVParameter("lbRMCTimeOfFix", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbRMCMagneticVariation"))
            {
                values.Add(new UAVParameter("lbRMCMagneticVariation", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGGAPosition"))
            {
                values.Add(new UAVParameter("lbGGAPosition", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGGATimeOfFix"))
            {
                values.Add(new UAVParameter("lbGGATimeOfFix", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGGAFixQuality"))
            {
                values.Add(new UAVParameter("lbGGAFixQuality", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGGANoOfSats"))
            {
                values.Add(new UAVParameter("lbGGANoOfSats", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGGAAltitude"))
            {
                values.Add(new UAVParameter("lbGGAAltitude", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGGAAltitudeUnit"))
            {
                values.Add(new UAVParameter("lbGGAAltitudeUnit", 0, null, null, urate));
            }

            if (!values.ContainsKey("lbGGAHDOP"))
            {
                values.Add(new UAVParameter("lbGGAHDOP", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGGAGeoidHeight"))
            {
                values.Add(new UAVParameter("lbGGAGeoidHeight", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGGADGPSupdate"))
            {
                values.Add(new UAVParameter("lbGGADGPSupdate", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGGADGPSID"))
            {
                values.Add(new UAVParameter("lbGGADGPSID", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGLLPosition"))
            {
                values.Add(new UAVParameter("lbGLLPosition", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGLLTimeOfSolution"))
            {
                values.Add(new UAVParameter("lbGLLTimeOfSolution", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGLLDataValid"))
            {
                values.Add(new UAVParameter("lbGLLDataValid", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGSAMode"))
            {
                values.Add(new UAVParameter("lbGSAMode", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGLLPosition"))
            {
                values.Add(new UAVParameter("lbGLLPosition", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGSAFixMode"))
            {
                values.Add(new UAVParameter("lbGSAFixMode", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGSAPRNs"))
            {
                values.Add(new UAVParameter("lbGSAPRNs", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGSAPDOP"))
            {
                values.Add(new UAVParameter("lbGSAPDOP", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGSAHDOP"))
            {
                values.Add(new UAVParameter("lbGSAHDOP", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbGSAVDOP"))
            {
                values.Add(new UAVParameter("lbGSAVDOP", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbRMEHorError"))
            {
                values.Add(new UAVParameter("lbRMEHorError", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbRMEVerError"))
            {
                values.Add(new UAVParameter("lbRMEVerError", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbRMESphericalError"))
            {
                values.Add(new UAVParameter("lbRMESphericalError", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbRMEVerError"))
            {
                values.Add(new UAVParameter("lbRMEVerError", 0, null, null, urate));
            }
            if (!values.ContainsKey("lbRMEVerError"))
            {
                values.Add(new UAVParameter("lbRMEVerError", 0, null, null, urate));
            }
        }