[chronojump] forceSensor filename for images works after capture
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] forceSensor filename for images works after capture
- Date: Tue, 21 Nov 2017 18:47:09 +0000 (UTC)
commit 0fc6e32978998513f0bd60a62c6f40f5271ef19c
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Nov 21 19:45:53 2017 +0100
forceSensor filename for images works after capture
src/gui/forceSensor.cs | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/forceSensor.cs b/src/gui/forceSensor.cs
index b1b8985..d3dc752 100644
--- a/src/gui/forceSensor.cs
+++ b/src/gui/forceSensor.cs
@@ -523,8 +523,15 @@ public partial class ChronoJumpWindow
capturingForce = forceStatus.CAPTURING;
Util.CreateForceSensorSessionDirIfNeeded (currentSession.UniqueID);
- string fileName = Util.GetForceSensorSessionDir(currentSession.UniqueID) +
Path.DirectorySeparatorChar +
- currentPerson.Name + "_" + UtilDate.ToFile(DateTime.Now) + ".csv";
+
+ string nameDate = currentPerson.Name + "_" + UtilDate.ToFile(DateTime.Now);
+
+ //fileName to save the csv
+ string fileName = Util.GetForceSensorSessionDir(currentSession.UniqueID) +
Path.DirectorySeparatorChar + nameDate + ".csv";
+
+ //lastForceSensorFile to save the images
+ lastForceSensorFile = nameDate;
+
TextWriter writer = File.CreateText(fileName);
writer.WriteLine("Time (micros);Force(N)");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]