コード例 #1
0
        public GpsInformation(int baudRate)
        {
            this.PositionInfo   = new PositionInfo();
            this.SatellitesInfo = new SatellitesInfo();

            this.ConnectToUARTAsync(baudRate);
        }
コード例 #2
0
 private void OnDataReceived(PositionInfo positionInfo, SatellitesInfo satellitesInfoClass)
 {
     this.DataReceivedEventHandler?.Invoke(this, new GpsDataReceivedEventArgs()
     {
         positionInfo   = positionInfo,
         satellitesInfo = satellitesInfoClass
     });
 }
コード例 #3
0
        private void ResetGpsStats()
        {
            this.PositionInfo   = new PositionInfo();
            this.SatellitesInfo = new SatellitesInfo();

            if (this.CurrentGpsStatus != GpsStatus.None)
            {
                this.CurrentGpsStatus = GpsStatus.None;
                this.OnStateChanged(this.CurrentGpsStatus);
            }
        }