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); }
private void AccelerometerUtility_AccelerometerChanged(AccelerometerChangedEventArgs e) { jumpDetectionUtility.AddReading(e.Data); readings.Add(e.Data); Debug.WriteLine(e.Data); }