コード例 #1
0
 public GPSTime(byte[] data)
 {
     _wn         = BitConverter.ToUInt16(data, 0);
     _tow        = BitConverter.ToUInt32(data, 2);
     _ns         = BitConverter.ToInt32(data, 6);
     _timeSource = (SBP_Enums.TimeSource)(data[7] & 0x7);
 }
コード例 #2
0
 public UTCTime(byte[] data)
 {
     _timeSource = (SBP_Enums.TimeSource)(data[0] & 0x7);
     _tow        = BitConverter.ToUInt32(data, 1);
     _year       = BitConverter.ToUInt16(data, 5);
     _month      = data[7];
     _day        = data[8];
     _hour       = data[9];
     _minute     = data[10];
     _second     = data[11];
     _ns         = BitConverter.ToInt32(data, 12);
 }