4 * This software is distributed under a zlib-style license.
\r
5 * See license.txt for more information.
\r
9 using System.Collections.Generic;
\r
12 namespace Yubeshi.Ubx
\r
14 public class NavDop : Packet
\r
16 #region constructors
\r
18 public NavDop(byte[] sentence, int length)
\r
19 : base(sentence, length)
\r
21 ID = MessageID.NavDop;
\r
28 public decimal TimeOfWeek
\r
32 return BitConverter.ToUInt32(Raw, 6 + 0) * 1e-3m;
\r
36 public double Geometric
\r
40 return BitConverter.ToUInt16(Raw, 6 + 4) * 1e-2;
\r
44 public double Position
\r
48 return BitConverter.ToUInt16(Raw, 6 + 6) * 1e-2;
\r
56 return BitConverter.ToUInt16(Raw, 6 + 8) * 1e-2;
\r
60 public double Vertical
\r
64 return BitConverter.ToUInt16(Raw, 6 + 10) * 1e-2;
\r
68 public double Horizonal
\r
72 return BitConverter.ToUInt16(Raw, 6 + 12) * 1e-2;
\r
76 public double Noarthing
\r
80 return BitConverter.ToUInt16(Raw, 6 + 14) * 1e-2;
\r
84 public double Easting
\r
88 return BitConverter.ToUInt16(Raw, 6 + 16) * 1e-2;
\r
94 #region public methods
\r
96 public static bool TryParse(byte[] sentence, out UnknownPacket packet)
\r
98 return TryParse(sentence, out packet, MessageID.NavDop, 18, Build);
\r
103 #region private methods
\r
105 private static Packet Build(byte[] sentence, int length)
\r
107 return new NavDop(sentence, length);
\r