OSDN Git Service

境界チェック不具合修正,UBX特化の座標コンストラクタ廃止,パケット実装の拡充と修正
[yubeshi/yubeshi.git] / Yubeshi / Ubx / NavPosEcef.cs
index 3026f75..71b057e 100755 (executable)
@@ -39,8 +39,8 @@ namespace Yubeshi.Ubx
                 int x = BitConverter.ToInt32(Raw, 6 + 4);\r
                 int y = BitConverter.ToInt32(Raw, 6 + 8);\r
                 int z = BitConverter.ToInt32(Raw, 6 + 12);\r
-                uint acc = BitConverter.ToUInt32(Raw, 6 + 16);\r
-                return new EcefCoordinate(x, y, z, acc);\r
+                double acc = BitConverter.ToUInt32(Raw, 6 + 16) * 0.01;\r
+                return new EcefCoordinate(x * 0.01, y * 0.01, z * 0.01, acc);\r
             }\r
         }\r
 \r