#ifndef ABSTRACTCALIBRATOR_H #define ABSTRACTCALIBRATOR_H #include #include #include #include #include class AbstractCalibrator : public QWidget { Q_OBJECT public: explicit AbstractCalibrator(QWidget *parent = 0); ~AbstractCalibrator(); virtual void set(const QVector& data)=0; signals: void setpointChanged(int index, float value); public slots: void channelChanged(float raw); protected: QLabel *pulseWidth; QVector *log; float logExtrema(); float logAverage(); }; #endif // ABSTRACTCALIBRATOR_H