Calibration Messages minor update

.. add some sample files with calibration messages to the
   test/rides directory

.. remove the calibration marker color config (we can add it
   back if needed, but was in the wrong 'sequence' and is
   probably just a little bit *too* fine grained).
This commit is contained in:
Mark Liversedge
2013-07-18 22:05:57 +01:00
parent f72e2bf135
commit 790dff7dbf
6 changed files with 7 additions and 5 deletions

View File

@@ -861,10 +861,10 @@ AllPlot::refreshCalibrationMarkers()
mrk->attach(this);
mrk->setLineStyle(QwtPlotMarker::VLine);
mrk->setLabelAlignment(Qt::AlignRight | Qt::AlignTop);
mrk->setLinePen(QPen(GColor(CCALIBRATIONMARKER), 0, Qt::DashDotLine));
mrk->setLinePen(QPen(GColor(CPLOTMARKER), 0, Qt::DashDotLine));
QwtText text("\n\n"+calibration.name);
text.setFont(QFont("Helvetica", 9, QFont::Bold));
text.setColor(GColor(CCALIBRATIONMARKER));
text.setColor(GColor(CPLOTMARKER));
if (!bydist)
mrk->setValue(calibration.start / 60.0, 0.0);
else

View File

@@ -110,7 +110,6 @@ void GCColor::setupColors()
{ tr("Alternate Power"), "CALTPOWER", Qt::magenta },
{ tr("Left Balance"), "CBALANCELEFT", QColor(178,0,0) },
{ tr("Right Balance"), "CBALANCERIGHT", QColor(128,0,50) },
{ tr("Plot Markers"), "COLORCALIBRATIONMARKER", QColor(40,40,40) },
{ "", "", QColor(0,0,0) },
};

View File

@@ -99,7 +99,7 @@ class ColorEngine : public QObject
#define GColor(x) GCColor::getColor(x)
// Define how many cconfigurable metric colors are available
#define CNUMOFCFGCOLORS 71
#define CNUMOFCFGCOLORS 70
#define CPLOTBACKGROUND 0
#define CRIDEPLOTBACKGROUND 1
@@ -171,6 +171,5 @@ class ColorEngine : public QObject
#define CALTPOWER 67
#define CBALANCELEFT 68
#define CBALANCERIGHT 69
#define CCALIBRATIONMARKER 70
#endif

Binary file not shown.

Binary file not shown.

View File

@@ -70,3 +70,7 @@ lgulseth...pwx
A very short ride (12 seconds) to test array processing and general
bounds checking in the GC codebase.
20130716_202738.fit
20130717_143733.fit
Two rides that contain the calibration messages collected from
an osync headunit.