29 #include "ui_outputpage.h"
47 void OutputPage::setOutputRanges(quint16 minPulse, quint16 neutralPulse, quint16 maxPulse)
50 for (
int i = 0;
i < allSettings.count();
i++) {
55 allSettings[
i] = settings;
62 QPointer<SetupWizard> wizard =
getWizard();
65 qCritical() <<
"No wizard!";
69 if (ui->oneShot125Button->isChecked()) {
73 setOutputRanges(125, 125, 250);
74 }
else if (ui->oneShot42Button->isChecked()) {
77 setOutputRanges(42, 42, 83);
78 }
else if (ui->dshot300Button->isChecked()) {
80 setOutputRanges(0, 48, 2047);
81 }
else if (ui->dshot600Button->isChecked()) {
83 setOutputRanges(0, 48, 2047);
84 }
else if (ui->dshot1200Button->isChecked()) {
86 setOutputRanges(0, 48, 2047);
89 setOutputRanges(1000, 1000, 2000);
The SetupWizard class is the main interface to the setup wizard. It provides selects the sequence of ...
SetupWizard * getWizard() const
void setActuatorSettings(QList< actuatorChannelSettings > actuatorSettings)
QList< actuatorChannelSettings > getActuatorSettings() const
OutputPage(SetupWizard *wizard, QWidget *parent=nullptr)