dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
tempcompcurve.h
Go to the documentation of this file.
1 
11 /*
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20  * for more details.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, see <http://www.gnu.org/licenses/>
24  */
25 
26 #ifndef TEMPCOMPCURVE_H
27 #define TEMPCOMPCURVE_H
28 
29 #include <QWidget>
30 
31 #include "qwt/src/qwt.h"
32 #include "qwt/src/qwt_plot.h"
33 #include "qwt/src/qwt_plot_curve.h"
34 #include "qwt/src/qwt_scale_draw.h"
35 #include "qwt/src/qwt_scale_widget.h"
36 #include "qwt/src/qwt_plot_grid.h"
37 
38 class TempCompCurve : public QwtPlot
39 {
40  Q_OBJECT
41 public:
42  explicit TempCompCurve(QWidget *parent = nullptr);
43 
45  void plotData(QList<double> temp, QList<double> gyro, QList<double> coefficients);
46 signals:
47 
48 public slots:
49 
50 private:
51  void clearCurves();
52 
53  QVector<QPointF> points;
54  QVector<QPointF> fit;
55  QwtPlotCurve *dataCurve;
56  QwtPlotCurve *fitCurve;
57 };
58 
59 #endif // TEMPCOMPCURVE_H
void plotData(QList< double > temp, QList< double > gyro, QList< double > coefficients)
Show calibration data for one of the channels.
TempCompCurve(QWidget *parent=nullptr)