예제 #1
0
        } = 30 * 1000;                                        //in millis

        public GPSManager(String deviceDescription, GPSDB db)
        {
            device                      = new GPSSerialDevice(deviceDescription);
            this.db                     = db;
            nmea                        = new NMEAInterpreter();
            nmea.HDOPReceived          += OnHDOPReceived;
            nmea.VDOPReceived          += OnVDOPReceived;
            nmea.PDOPReceived          += OnPDOPReceived;
            nmea.SpeedReceived         += OnSpeedReceived;
            nmea.BearingReceived       += OnBearingReceived;
            nmea.PositionReceived      += OnPositionReceived;
            nmea.SatellitesReceived    += OnSatellitesReceived;
            device.NewSentenceReceived += OnNewSentenceReceived;
        }
예제 #2
0
        static public GPSDB Create(System.Configuration.ApplicationSettingsBase settings)
        {
            GPSDB db = DB.Create <GPSDB>(settings);

            return(db);
        }