Example #1
0
            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);
            }
Example #2
0
            public string ConvertRecordToCvs(object record)
            {
                F01Record rec = (F01Record)record;

                return(rec.ConvertRecordToCvs());
            }
Example #3
0
 public object CreateRecord(byte[] buffer)
 {
     return(F01Record.FromBytes(buffer));
 }