public void PrintSensors(bool fast = false) { //BarometerReading read = baro.GetCurrentReading(); var accR = acc.GetCurrentReading(); //Debug.WriteLine(Math.Sqrt(Math.Pow(accR.AccelerationX; 2) + Math.Pow(accR.AccelerationY; 2) + Math.Pow(accR.AccelerationZ; 2)) + " (" + accR.AccelerationX + "/" + accR.AccelerationX + "/" + accR.AccelerationX + ")"); //var actR = act.GetCurrentReadingAsync().GetResults(); //Debug.WriteLine(actR.Activity + " (" + actR.Confidence + ")"); //Debug.WriteLine(alt.GetCurrentReading().AltitudeChangeInMeters); //Debug.WriteLine(baro.GetCurrentReading().StationPressureInHectopascals); var compR = comp.GetCurrentReading(); //Debug.WriteLine(compR.HeadingMagneticNorth + " (+/-" + compR.HeadingAccuracy + ")"); var gyroR = gyro.GetCurrentReading(); //Debug.WriteLine("(" + gyroR.AngularVelocityX + "/" + gyroR.AngularVelocityY + "/" + gyroR.AngularVelocityZ + ")"); var incR = inc.GetCurrentReading(); //Debug.WriteLine("(" + incR.PitchDegrees + "/" + incR.RollDegrees + "/" + incR.YawDegrees + ")"); //var psR=ps.GetCurrentReading(); //Debug.WriteLine(psR.IsDetected + ": " + psR.DistanceInMillimeters); //Debug.WriteLine(sos.GetCurrentOrientation()); String csv = (Math.Sqrt(Math.Pow(accR.AccelerationX, 2) + Math.Pow(accR.AccelerationY, 2) + Math.Pow(accR.AccelerationZ, 2)) + ";" + accR.AccelerationX + ";" + accR.AccelerationY + ";" + accR.AccelerationZ + ";" + alt.GetCurrentReading().AltitudeChangeInMeters + ";" + baro.GetCurrentReading().StationPressureInHectopascals + ";" + compR.HeadingMagneticNorth + ";" + compR.HeadingTrueNorth + ";" + compR.HeadingAccuracy + ";" + gyroR.AngularVelocityX + ";" + gyroR.AngularVelocityY + ";" + gyroR.AngularVelocityZ + ";" + incR.PitchDegrees + ";" + incR.RollDegrees + ";" + incR.YawDegrees + ";" + sos.GetCurrentOrientation() + ";" + accR.Timestamp.ToUnixTimeMilliseconds() + ";" + fast); Debug.WriteLine(csv); StorageInterface.AppendToKnownStorageFile(Token, csv + "\r\n").GetAwaiter(); OUT.Text += csv + "\r\n"; }