示例#1
0
        private void Accelerometer_ReadingChanged(object sender, AccelerometerChangedEventArgs e)
        {
            var reading = new AccelerometerReadingDto {
                Timestamp = DateTime.UtcNow,
                X         = e.Reading.Acceleration.X,
                Y         = e.Reading.Acceleration.Y,
                Z         = e.Reading.Acceleration.Z,
            };

            jumpDetectionUtility.AddReading(reading);
            readings.Add(reading);

            Debug.WriteLine(reading);
        }
示例#2
0
 private void AccelerometerUtility_AccelerometerChanged(AccelerometerChangedEventArgs e)
 {
     jumpDetectionUtility.AddReading(e.Data);
     readings.Add(e.Data);
     Debug.WriteLine(e.Data);
 }