[chronojump] Clean code
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Clean code
- Date: Mon, 24 May 2021 15:36:58 +0000 (UTC)
commit fa31e15e0254cf99cb78f9d7f203bf64686ad146
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon May 24 17:36:52 2021 +0200
Clean code
src/gui/app1/forceSensor.cs | 18 +-----------------
1 file changed, 1 insertion(+), 17 deletions(-)
---
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index 3f10f34a7..3b8adab75 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -1749,11 +1749,6 @@ LogB.Information(" fs R ");
private static int interpolatedPathAccuracyCountIn;
private static int interpolatedPathAccuracyCountOut;
- private List<double> interYtimes_l; //funciona
- private List<int> interYinterYs_l; //funciona
- //private TwoListsOfInts twoListsOfInts;
-
-
private void forceSensorCaptureDoRealtimeGraphScroll(int numCaptured, int toDraw, List<Gdk.Point>
points)
{
LogB.Information(" Graph Scroll ");
@@ -2580,7 +2575,6 @@ LogB.Information(" fs R ");
}
List<Gdk.Point> paintPointsInterpolate;
- int interYLast = 0;
private void forceSensorDrawInterpolatedFeedback (int startAt)
{
if(interpolate_l != null)
@@ -2593,15 +2587,10 @@ LogB.Information(" fs R ");
int timeStep = (1000 *
repetitiveConditionsWin.GetForceSensorFeedbackPathMasterSeconds/100) //if each 1000 ms, then: advance by 10
(to have 100 interpolated between each master)
* 1000; //to micros
-
paintPointsInterpolate = new List<Gdk.Point>();
- interYtimes_l = new List<double>(); //funciona
- interYinterYs_l = new List<int>(); //funciona
- //twoListsOfInts.Reset();
-
do {
- for(int interY = 0; //TODO: change this to be on phase of interpolate_l (if
there are less points)
+ for(int interY = 0;
interY < interpolate_l.Count && timeCount <
fscPoints.GetLastTime();
interY ++)
{
@@ -2610,12 +2599,7 @@ LogB.Information(" fs R ");
fscPoints.GetForceInPx(interpolate_l[interY].Y)
));
- interYtimes_l.Add(timeCount); //funciona
- interYinterYs_l.Add(interY); //funciona
- //twoListsOfInts.Add(timeCount, interY);
-
timeCount += timeStep;
- interYLast = interY;
}
} while (timeCount < fscPoints.GetLastTime());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]