void ApplyCalibration(bool logDetailsToFile) { // apply calibration of given profile to acceleration sensor launch detection DataItemVehicle vehicle = Database.GetInstance().GetActiveProfile(); RunStartStop startStop = new RunStartStop(vehicle); if (logDetailsToFile == true) { string latitude = gpsProvider.GetLatitude().ToString().Replace(',', '.'); string longitute = gpsProvider.GetLongitude().ToString().Replace(',', '.'); Debug.LogToFile("location [latitude, longitude]: " + latitude + ", " + longitute); Debug.LogToFile(startStop.GetStartString()); Debug.LogToFile(startStop.GetStopString()); Analytics.TrackLocation(latitude, longitute); } accelerometerProvider.SetForceDetectLimit(startStop.GetStartLimit()); accelerometerProvider.SetAxisOffset(vehicle.AxisOffsetX, vehicle.AxisOffsetY, vehicle.AxisOffsetZ); runModeProvider.StopDetectionLimit = startStop.GetStopLimit(); }