OSDN Git Service

Monパケット対応準備,Infパケット対応
[yubeshi/yubeshi.git] / YubeshiTest / UbxTest / SamplePackets.cs
index e3fecb1..ce482da 100755 (executable)
@@ -16,18 +16,23 @@ namespace YubeshiTest.UbxTest
         public static readonly byte[] Dummy;\r
         public static readonly byte[] UserDefined;\r
 \r
+        public static readonly byte[] InfDebug;\r
+        public static readonly byte[] InfError;\r
+        public static readonly byte[] InfNotice;\r
+        public static readonly byte[] InfTest;\r
+        public static readonly byte[] InfWarning;\r
+\r
         public static readonly byte[] NavClock;\r
         public static readonly byte[] NavDop;\r
         public static readonly byte[] NavPosEcef;\r
         public static readonly byte[] NavSol;\r
 \r
+\r
         public static readonly byte[] ValidUnknown;\r
 \r
 \r
         static SamplePackets()\r
         {\r
-            Encoding ascii = Encoding.ASCII;\r
-\r
             Dummy = new byte[] {\r
                 0xB5, 0x63, 0xFF, 0xFF, 0x04, 0x00,\r
                 0x01, 0x02, 0x03, 0x04, \r
@@ -40,6 +45,50 @@ namespace YubeshiTest.UbxTest
                 0xFF, 0xFF\r
             };\r
 \r
+            #region Inf\r
+\r
+            InfDebug = new byte[]{\r
+                0xB5, 0x62, 0x04, 0x04, 0x08, 0x00,\r
+                (byte)'!', 0,\r
+                (byte)'D', (byte)'e', (byte)'b', (byte)'u', \r
+                (byte)'g', (byte)'.',\r
+                0xFF, 0xFF\r
+            };\r
+\r
+            InfError = new byte[]{\r
+                0xB5, 0x62, 0x04, 0x00, 0x08, 0x00,\r
+                (byte)'!', 0,\r
+                (byte)'E', (byte)'r', (byte)'r', (byte)'o',\r
+                (byte)'r', (byte)'.',\r
+                0xFF, 0xFF\r
+            };\r
+\r
+            InfNotice = new byte[]{\r
+                0xB5, 0x62, 0x04, 0x02, 0x09, 0x00,\r
+                (byte)'!', 0,\r
+                (byte)'N', (byte)'o', (byte)'t', (byte)'i', \r
+                (byte)'c', (byte)'e', (byte)'.',\r
+                0xFF, 0xFF\r
+            };\r
+\r
+            InfTest = new byte[]{\r
+                0xB5, 0x62, 0x04, 0x03, 0x07, 0x00,\r
+                (byte)'!', 0, \r
+                (byte)'T', (byte)'e', (byte)'s', (byte)'t', \r
+                (byte)'.',\r
+                0xFF, 0xFF\r
+            };\r
+\r
+            InfWarning = new byte[]{\r
+                0xB5, 0x62, 0x04, 0x01, 0x0A, 0x00,\r
+                (byte)'!', 0,\r
+                (byte)'W', (byte)'a', (byte)'r', (byte)'n', \r
+                (byte)'i', (byte)'n', (byte)'g', (byte)'.',\r
+                0xFF, 0xFF\r
+            };\r
+            #endregion\r
+\r
+            #region Nav\r
             NavClock = new byte[]{\r
                 0xB5, 0x62, 0x01, 0x22, 0x14, 0x00, \r
                 0xE5, 0x16, 0x3F, 0x0A, // tow\r
@@ -92,8 +141,8 @@ namespace YubeshiTest.UbxTest
                 0x1B, 0x1E, 0x01, 0x00,\r
                 0xFF, 0xFF\r
             };\r
+            #endregion\r
 \r
-            \r
             ValidUnknown = new byte[]{\r
                 0xB5, 0x62, 0x03, 0x0C, 0x22, 0x00,\r
                 0x00, 0x00, 0x00, 0x00, \r