[chronojump] CairoGraphRaceAnalyzer prints RunEncoderSegmentCalcs dist, time
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] CairoGraphRaceAnalyzer prints RunEncoderSegmentCalcs dist, time
- Date: Mon, 9 May 2022 12:07:50 +0000 (UTC)
commit f1bf6de436ca3613270127fe5c9e346a9864eba9
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon May 9 14:07:35 2022 +0200
CairoGraphRaceAnalyzer prints RunEncoderSegmentCalcs dist,time
src/gui/cairo/raceAnalyzer.cs | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/gui/cairo/raceAnalyzer.cs b/src/gui/cairo/raceAnalyzer.cs
index 1e992274a..f19b1c6e1 100644
--- a/src/gui/cairo/raceAnalyzer.cs
+++ b/src/gui/cairo/raceAnalyzer.cs
@@ -136,7 +136,7 @@ public class CairoGraphRaceAnalyzer : CairoXY
//vertical
if(segmentCalcs.Count > 0)
{
- LogB.Information("speedCont ; accels ; forces ; powers");
+ LogB.Information("dist ; time(s) ; speedCont ; accels ; forces ;
powers");
g.Save();
g.SetDash(new double[]{1, 2}, 0);
for(int i = 0 ; i < segmentCalcs.Count ; i ++)
@@ -146,11 +146,13 @@ public class CairoGraphRaceAnalyzer : CairoXY
//seconds
string xTextBottom =
Util.TrimDecimals(segmentCalcs.Time_l[i]/1000000.0, 1).ToString();
double xGraph =
calculatePaintX(segmentCalcs.Time_l[i]/1000000.0);
- LogB.Information(string.Format("{0} ; {1} ; {2} ; {3}",
-
segmentCalcs.SpeedCont_l[i].ToString(),
- segmentCalcs.Accel_l[i].ToString(),
- segmentCalcs.Force_l[i].ToString(),
- segmentCalcs.Power_l[i].ToString() ));
+ LogB.Information(string.Format("{0} ; {1} ; {2} ; {3} : {4} ;
{5}",
+ segmentCalcs.Dist_l[i],
+ segmentCalcs.Time_l[i]/1000000.0,
+ segmentCalcs.SpeedCont_l[i],
+ segmentCalcs.Accel_l[i],
+ segmentCalcs.Force_l[i],
+ segmentCalcs.Power_l[i] ));
if(useListOfDoublesOnY)
paintVerticalGridLine(g, Convert.ToInt32(xGraph),
xTextBottom, textHeight-3);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]