32 #ifndef CONFIGATTITUDEWIDGET_H
33 #define CONFIGATTITUDEWIDGET_H
35 #include "ui_attitude.h"
44 #include <QSvgRenderer>
45 #include <QGraphicsSvgItem>
67 std::unique_ptr<Ui_AttitudeWidget> m_ui;
68 QGraphicsSvgItem *paperplane;
71 const static double maxVarValue;
72 const static int calibrationDelay = 10;
74 float initialMagCorrectionRate;
76 QMap<QString, UAVObject::Metadata> originalMetaData;
80 virtual void refreshWidgetsValues(
UAVObject *obj =
nullptr);
83 void displayPlane(
int i);
87 void configureSixPoint();
88 void onCalibrationBusy(
bool busy);
89 void updateCalibrationEnabled();
92 #endif // CONFIGATTITUDEWIDGET_H
void showEvent(QShowEvent *event)
The Calibration class is a UI free algorithm that can be connected to any interfaces. As such it only communicates with the UI via signals and slots, but has no direct handles to any particular controls or widgets.
ConfigAttitudeWidget(QWidget *parent=nullptr)
void resizeEvent(QResizeEvent *event)
Gui-less support class for calibration.