} = 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; }
static public GPSDB Create(System.Configuration.ApplicationSettingsBase settings) { GPSDB db = DB.Create <GPSDB>(settings); return(db); }