1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-10 20:52:11 +01:00

61 lines
1.8 KiB
C
Raw Normal View History

2014-09-28 15:05:17 +10:00
/**
******************************************************************************
*
* @file biascalibrationpage.h
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
* @addtogroup
* @{
* @addtogroup BiasCalibrationPage
* @{
* @brief
*****************************************************************************/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
2014-09-28 15:11:40 +10:00
2014-09-28 15:05:17 +10:00
#ifndef ESCCALIBRATIONPAGE_H
#define ESCCALIBRATIONPAGE_H
#include "abstractwizardpage.h"
#include "outputcalibrationutil.h"
2014-09-28 15:05:17 +10:00
namespace Ui {
class EscCalibrationPage;
}
class EscCalibrationPage : public AbstractWizardPage {
Q_OBJECT
public:
explicit EscCalibrationPage(SetupWizard *wizard, QWidget *parent = 0);
~EscCalibrationPage();
bool validatePage();
private slots:
void startStopButtonClicked();
void enableButtons(bool enable);
2014-09-28 15:05:17 +10:00
private:
2014-09-30 20:40:54 +02:00
const int LOW_PWM_OUTPUT_PULSE_LENGTH_MICROSECONDS = 1000;
const int HIGH_PWM_OUTPUT_PULSE_LENGTH_MICROSECONDS = 2000;
2014-09-28 15:05:17 +10:00
Ui::EscCalibrationPage *ui;
bool m_isCalibrating;
QList<OutputCalibrationUtil *> m_outputs;
2014-09-28 15:05:17 +10:00
};
#endif // ESCCALIBRATIONPAGE_H