27 #ifndef CONFIGAUTOTUNE_H
28 #define CONFIGAUTOTUNE_H
30 #include "../uavobjectwidgetutils/configtaskwidget.h"
34 #include "actuatorsettings.h"
35 #include "stabilizationsettings.h"
36 #include "systemident.h"
39 #include <QLineSeries>
42 #include <QWizardPage>
43 #include <QtNetwork/QNetworkReply>
45 QT_CHARTS_USE_NAMESPACE
47 #include "ui_autotune.h"
48 #include "ui_autotunebeginning.h"
49 #include "ui_autotuneproperties.h"
50 #include "ui_autotunesliders.h"
51 #include "ui_autotunefinalpage.h"
107 QString tuneValid(
bool *okToContinue)
const;
117 const uint64_t ATFLASH_MAGIC = 0x656e755480008041;
119 struct at_flash_header
130 struct at_measurement
138 struct at_flash_header hdr;
143 bool processAutotuneData();
144 void biquadFilter(
float cutoff,
int pts, QVector<float> &
data);
145 float getSampleDelay(
int pts,
const QVector<float> &delayed,
146 const QVector<float> &orig,
int seriesCutoff = 4);
149 void doDownloadAndProcess();
164 QChart *makeChart(
int axis);
182 void setText(QLabel *lbl,
double value,
int precision);
185 void computeThrust();
205 Ui_AutotuneWidget *m_autotune;
208 static const QString databaseUrl;
216 void checkNewAutotune();
219 void openAutotuneDialog();
220 void openAutotuneDialog(
bool autoOpened,
AutotunedValues *precalc_vals =
nullptr);
222 void openAutotuneFile();
225 void atDisconnected();
228 #endif // CONFIGAUTOTUNE_H
AutotuneSlidersPage(QWidget *parent, AutotunedValues *autoValues)
AutotuneFinalPage(QWidget *parent)
ConfigAutotuneWidget(ConfigGadgetWidget *parent=nullptr)
AutotuneBeginningPage(QWidget *parent, bool autoOpened, AutotunedValues *autoValues)
AutotuneMeasuredPropertiesPage(QWidget *parent, AutotunedValues *autoValues)