Пример #1
0
        private void TranslateRaw(GyroscopeRawData rawData)
        {
            double upperBound = Context.Instance.UserCalibration.FastGyro * 0.6;
            double lowerBound = Context.Instance.UserCalibration.SlowGyro * 0.6;

            Data.X      = CalculateThreashold(upperBound, lowerBound, rawData.X);
            Data.Y      = CalculateThreashold(upperBound, lowerBound, rawData.Y);
            Data.Z      = CalculateThreashold(upperBound, lowerBound, rawData.Z);
            Data.Normal = CalculateThreashold(Context.Instance.UserCalibration.FastGyro, Context.Instance.UserCalibration.SlowGyro, rawData.Normal);
        }
Пример #2
0
 public GyroscopeAnalyzer(GyroscopeRawData rawData)
 {
     TranslateRaw(rawData);
 }