public BaselineHeading_Dep(byte[] data) { _tow = BitConverter.ToUInt32(data, 0); _heading = (double)BitConverter.ToUInt32(data, 4) / 1000.0; _n_sats = data[8]; _fixMode = (data[9] & 0x1) > 0 ? SBP_Enums.FixMode_Dep.Fixed_RTK : SBP_Enums.FixMode_Dep.Float_RTK; _raimAvailable = (data[9] & 0x4) > 0; _raimRepair = (data[9] & 0x8) > 0; }
public PosistionECEF_Dep(byte[] data) { _tow = BitConverter.ToUInt32(data, 0); _x = BitConverter.ToDouble(data, 4); _y = BitConverter.ToDouble(data, 12); _z = BitConverter.ToDouble(data, 20); _accuracy = BitConverter.ToUInt16(data, 28); _n_sats = data[30]; _fixMode = (SBP_Enums.FixMode_Dep)(data[31] & 0x3); _raimAvailable = (data[31] & 0x4) > 0; _raimRepair = (data[31] & 0x8) > 0; }
public BaselineECEF_Dep(byte[] data) { _tow = BitConverter.ToUInt32(data, 0); _x = BitConverter.ToInt32(data, 4); _y = BitConverter.ToInt32(data, 8); _z = BitConverter.ToInt32(data, 12); _accuracy = BitConverter.ToUInt16(data, 16); _n_sats = data[18]; _fixMode = (data[19] & 0x1) > 0 ? SBP_Enums.FixMode_Dep.Fixed_RTK : SBP_Enums.FixMode_Dep.Float_RTK; _raimAvailable = (data[19] & 0x4) > 0; _raimRepair = (data[19] & 0x8) > 0; }
public BaselineNED_Dep(byte[] data) { _tow = BitConverter.ToUInt32(data, 0); _n = BitConverter.ToInt32(data, 4); _e = BitConverter.ToInt32(data, 8); _d = BitConverter.ToInt32(data, 12); _h_accuracy = BitConverter.ToUInt16(data, 16); _v_accuracy = BitConverter.ToUInt16(data, 18); _n_sats = data[20]; _fixMode = (data[21] & 0x1) > 0 ? SBP_Enums.FixMode_Dep.Fixed_RTK : SBP_Enums.FixMode_Dep.Float_RTK; _raimAvailable = (data[21] & 0x4) > 0; _raimRepair = (data[21] & 0x8) > 0; }
public PositionLLH_Dep(byte[] data) { _tow = BitConverter.ToUInt32(data, 0); _lat = BitConverter.ToDouble(data, 4); _lon = BitConverter.ToDouble(data, 12); _height = BitConverter.ToDouble(data, 20); _h_accuracy = BitConverter.ToUInt16(data, 28); _v_accuracy = BitConverter.ToUInt16(data, 30); _n_sats = data[32]; _fixMode = (SBP_Enums.FixMode_Dep)(data[33] & 0x3); _heightAboveMeanSeaLevel = (data[31] & 0x4) > 0; _raimAvailable = (data[31] & 0x8) > 0; _raimRepair = (data[31] & 0x10) > 0; }