AirfoilServoCalibrator.h 864 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#ifndef AIRFOILSERVOCALIBRATOR_H
#define AIRFOILSERVOCALIBRATOR_H

#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QVector>
#include <QGridLayout>
#include <QHBoxLayout>

11 12 13
#include "AbstractCalibrator.h"

class AirfoilServoCalibrator : public AbstractCalibrator
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
{
Q_OBJECT
public:
    enum AirfoilType
    {
        AILERON,
        ELEVATOR,
        RUDDER
    };

    explicit AirfoilServoCalibrator(AirfoilType type = AILERON, QWidget *parent = 0);

signals:
    void highSetpointChanged(float);
    void centerSetpointChanged(float);
    void lowSetpointChanged(float);

31 32 33 34 35 36 37 38 39
protected slots:
    void setHigh();
    void setCenter();
    void setLow();

protected:    
    QLabel *highPulseWidth;
    QLabel *centerPulseWidth;
    QLabel *lowPulseWidth;
40 41 42 43 44 45 46

    float high;
    float center;
    float low;
};

#endif // AIRFOILSERVOCALIBRATOR_H