OSDN Git Service

LLH座標系に加えECEF座標系を追加
[yubeshi/yubeshi.git] / YubeshiTest / Nmea / SamplePackets.cs
1 /*\r
2  *      Yubeshi GPS Parser\r
3  *\r
4  *      This software is distributed under a zlib-style license.\r
5  *      See license.txt for more information.\r
6  */\r
7 \r
8 using System;\r
9 using System.Collections.Generic;\r
10 using System.Text;\r
11 \r
12 namespace YubeshiTest.Nmea\r
13 {\r
14     public class SamplePackets\r
15     {\r
16         public static readonly byte[] Dummy;\r
17         public static readonly byte[] GpDtm;\r
18         public static readonly byte[] GpGbs;\r
19         public static readonly byte[] GpGga;\r
20         public static readonly byte[] GpGll;\r
21         public static readonly byte[] GpGrs;\r
22         public static readonly byte[] GpGsa;\r
23         public static readonly byte[] GpGst;\r
24         public static readonly byte[] GpGsv;\r
25         public static readonly byte[] GpRmc;\r
26 \r
27 \r
28         static SamplePackets()\r
29         {\r
30             Encoding ascii = Encoding.ASCII;\r
31 \r
32             Dummy = ascii.GetBytes("$GPXXX,YYY,ZZZ,*FF\r\n");\r
33 \r
34             // from u-blox document\r
35             GpDtm = ascii.GetBytes("$GPDTM,W84,,0.000000,N,0.000000,E,0.0,W84*6F\r\n");\r
36             GpGga = ascii.GetBytes("$GPGGA,092725.00,4717.11399,N,00833.91590,E,1,8,1.01,499.6,M,48.0,M,,0*5B\r\n");\r
37             GpGll = ascii.GetBytes("$GPGLL,4717.11364,N,00833.91565,E,092321.00,A,A*60\r\n");\r
38             GpGrs = ascii.GetBytes("$GPGRS,082632.00,1,0.54,0.83,1.00,1.02,-2.12,2.64,-0.71,-1.18,0.25,,,*70\r\n");\r
39             GpGsa = ascii.GetBytes("$GPGSA,A,3,23,29,07,08,09,18,26,28,,,,,1.94,1.18,1.54*0D\r\n");\r
40 \r
41         }\r
42     }\r
43 }\r