26 #ifndef CONFIGMULTIROTORWIDGET_H
27 #define CONFIGMULTIROTORWIDGET_H
29 #include "ui_airframe.h"
39 #include <QItemDelegate>
54 Ui_AircraftWidget *m_aircraft;
57 QGraphicsSvgItem *quad;
59 bool setupQuad(
bool pLayout);
60 bool setupHexa(
bool pLayout);
62 bool setupMultiRotorMixer(
double mixerFactors[8][3]);
63 void setupMotors(
QList<QString> motorList, SystemSettings::AirframeTypeOptions vehicle);
64 void setupQuadMotor(
int channel,
double roll,
double pitch,
double yaw);
70 static const QString CHANNELBOXNAME;
71 static const QString CHANNELLABELNAME;
72 void setYawMixLevel(
int);
74 void drawAirframe(SystemSettings::AirframeTypeOptions multiRotorType);
77 virtual void setupUI(SystemSettings::AirframeTypeOptions airframeType);
78 void refreshAirframeWidgetsValues(SystemSettings::AirframeTypeOptions frameType);
79 virtual SystemSettings::AirframeTypeOptions updateConfigObjectsFromWidgets();
80 virtual bool throwConfigError(
int numMotors);
87 #endif // CONFIGMULTIROTORWIDGET_H
ConfigMultiRotorWidget(Ui_AircraftWidget *aircraft=nullptr, QWidget *parent=nullptr)
void configurationChanged()
static QStringList getChannelDescriptions()
~ConfigMultiRotorWidget()