public GpsInformation(int baudRate) { this.PositionInfo = new PositionInfo(); this.SatellitesInfo = new SatellitesInfo(); this.ConnectToUARTAsync(baudRate); }
private void OnDataReceived(PositionInfo positionInfo, SatellitesInfo satellitesInfoClass) { this.DataReceivedEventHandler?.Invoke(this, new GpsDataReceivedEventArgs() { positionInfo = positionInfo, satellitesInfo = satellitesInfoClass }); }
private void ResetGpsStats() { this.PositionInfo = new PositionInfo(); this.SatellitesInfo = new SatellitesInfo(); if (this.CurrentGpsStatus != GpsStatus.None) { this.CurrentGpsStatus = GpsStatus.None; this.OnStateChanged(this.CurrentGpsStatus); } }