LP-514 Add DShot150/600/1200 and OneShot42/MultiShot Esc support to Wizard
[librepilot.git] / ground / gcs / src / plugins / setupwizard / pages / escpage.h
blobcba0e84666db67a64c10185a83e9b8117d8c19cb
1 /**
2 ******************************************************************************
4 * @file escpage.h
5 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2014.
6 * @addtogroup
7 * @{
8 * @addtogroup EscPage
9 * @{
10 * @brief
11 *****************************************************************************/
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 3 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * for more details.
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #ifndef ESCPAGE_H
29 #define ESCPAGE_H
31 #include "abstractwizardpage.h"
33 namespace Ui {
34 class EscPage;
37 class EscPage : public AbstractWizardPage {
38 Q_OBJECT
40 public:
41 explicit EscPage(SetupWizard *wizard, QWidget *parent = 0);
42 ~EscPage();
43 void initializePage();
44 bool validatePage();
46 private:
47 Ui::EscPage *ui;
48 bool isSynchOrOneShotAvailable();
49 bool isFastDShotAvailable();
52 #endif // ESCPAGE_H