public static F01Record FromBytes(byte[] buffer) { F01Record rec = new F01Record(); rec.Time = BitConverter.ToInt64(buffer, 0); rec.RollGyroRate = BitConverter.ToDouble(buffer, 8); rec.PitchGyroRate = BitConverter.ToDouble(buffer, 16); rec.YawGyroRate = BitConverter.ToDouble(buffer, 24); rec.AccelXAxis = BitConverter.ToDouble(buffer, 32); rec.AccelYAxis = BitConverter.ToDouble(buffer, 40); rec.AccelZAxis = BitConverter.ToDouble(buffer, 48); rec.MagRawValueXAxis = BitConverter.ToDouble(buffer, 56); rec.MagRawValueYAxis = BitConverter.ToDouble(buffer, 64); rec.MagRawValueZAxis = BitConverter.ToDouble(buffer, 72); return(rec); }
public string ConvertRecordToCvs(object record) { F01Record rec = (F01Record)record; return(rec.ConvertRecordToCvs()); }
public object CreateRecord(byte[] buffer) { return(F01Record.FromBytes(buffer)); }