From 821573144ab3ba0a426432b7f8f3fe9ce1127eeb Mon Sep 17 00:00:00 2001 From: m_thread Date: Tue, 17 Feb 2015 01:08:23 +0100 Subject: [PATCH] OP-1685 Adding new artwork for oneshot esc. Adding more configuration logic. --- .../src/plugins/setupwizard/pages/escpage.cpp | 14 ++++++++++++-- .../src/plugins/setupwizard/pages/escpage.h | 2 ++ .../src/plugins/setupwizard/pages/escpage.ui | 13 ++++++++----- .../src/plugins/setupwizard/pages/savepage.cpp | 3 +++ .../setupwizard/resources/bttn-oneshot-dwn.png | Bin 0 -> 5593 bytes .../setupwizard/resources/bttn-oneshot-up.png | Bin 0 -> 6487 bytes .../src/plugins/setupwizard/setupwizard.cpp | 3 +++ .../src/plugins/setupwizard/setupwizard.h | 2 +- .../setupwizard/vehicleconfigurationhelper.cpp | 8 ++++++-- .../setupwizard/vehicleconfigurationsource.h | 2 +- .../src/plugins/setupwizard/wizardResources.qrc | 2 ++ 11 files changed, 38 insertions(+), 11 deletions(-) create mode 100644 ground/openpilotgcs/src/plugins/setupwizard/resources/bttn-oneshot-dwn.png create mode 100644 ground/openpilotgcs/src/plugins/setupwizard/resources/bttn-oneshot-up.png diff --git a/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.cpp b/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.cpp index 043c51317..6ef5ce507 100644 --- a/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.cpp +++ b/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.cpp @@ -44,8 +44,8 @@ EscPage::~EscPage() bool EscPage::validatePage() { - if (ui->synchedESCButton->isChecked()) { - getWizard()->setEscType(SetupWizard::ESC_SYNCHED); + if (ui->oneshotESCButton->isChecked()) { + getWizard()->setEscType(SetupWizard::ESC_ONESHOT); }else if (ui->rapidESCButton->isChecked()) { getWizard()->setEscType(SetupWizard::ESC_RAPID); } else if (ui->defaultESCButton->isChecked()){ @@ -54,3 +54,13 @@ bool EscPage::validatePage() return true; } + + +void EscPage::initializePage() +{ + ui->oneshotESCButton->setEnabled(getWizard()->getInputType() != SetupWizard::INPUT_PWM); + if (ui->oneshotESCButton->isChecked() && getWizard()->getInputType() == SetupWizard::INPUT_PWM) { + ui->oneshotESCButton->setChecked(false); + ui->rapidESCButton->setChecked(true); + } +} diff --git a/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.h b/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.h index 001122e46..017c3f27d 100644 --- a/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.h +++ b/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.h @@ -41,9 +41,11 @@ public: explicit EscPage(SetupWizard *wizard, QWidget *parent = 0); ~EscPage(); bool validatePage(); + void initializePage(); private: Ui::EscPage *ui; + }; #endif // ESCPAGE_H diff --git a/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.ui b/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.ui index 3827e48ed..a70763715 100644 --- a/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.ui +++ b/ground/openpilotgcs/src/plugins/setupwizard/pages/escpage.ui @@ -6,7 +6,7 @@ 0 0 - 600 + 641 400 @@ -140,7 +140,10 @@ p, li { white-space: pre-wrap; } - + + + false + 10 @@ -153,12 +156,12 @@ p, li { white-space: pre-wrap; } QToolButton { border: none } - Synched ESC + OneShot ESC - :/setupwizard/resources/bttn-rapid-up.png - :/setupwizard/resources/bttn-rapid-dwn.png:/setupwizard/resources/bttn-rapid-up.png + :/setupwizard/resources/bttn-oneshot-up.png + :/setupwizard/resources/bttn-oneshot-dwn.png:/setupwizard/resources/bttn-oneshot-up.png diff --git a/ground/openpilotgcs/src/plugins/setupwizard/pages/savepage.cpp b/ground/openpilotgcs/src/plugins/setupwizard/pages/savepage.cpp index 22084b277..ba712c9fb 100644 --- a/ground/openpilotgcs/src/plugins/setupwizard/pages/savepage.cpp +++ b/ground/openpilotgcs/src/plugins/setupwizard/pages/savepage.cpp @@ -74,6 +74,9 @@ void SavePage::writeToController() disconnect(&helper, SIGNAL(saveProgress(int, int, QString)), this, SLOT(saveProgress(int, int, QString))); ui->saveProgressLabel->setText(QString("%2").arg(m_successfulWrite ? "green" : "red", ui->saveProgressLabel->text())); + if (m_successfulWrite) { + getWizard()->reboot(); + } enableButtons(true); emit completeChanged(); diff --git a/ground/openpilotgcs/src/plugins/setupwizard/resources/bttn-oneshot-dwn.png b/ground/openpilotgcs/src/plugins/setupwizard/resources/bttn-oneshot-dwn.png new file mode 100644 index 0000000000000000000000000000000000000000..658b568a974246c8476dd1c4cc7e208d9aa18e8f GIT binary patch literal 5593 zcmbVQcT`i`(#M7r=@2@E9uz_XkrIlA5Sj>~7eNRl0#ZT=QbbUY-aDxD4pOCq2t?_< zNE5ioMM0V%MT+pkeb@WFKi+zOd}p1r&)#!pelzwvwST+YqO6mEIBU~C+41fVs}*4|l>f2;W&KhPel$Zve}F66EY z5@%iFEjflmg@3Y$c#_a&qSwl9J*i4RLpGX9C7c z+}T~=H-ZYz-Nwz{gE%jE%kXxj^(hLI2*b3eL^`5e}>BhIaz~ z#W39dzeE6$k|ouT3=AS836YkCLS+%sDo9BbLKUHmR6!|2`2V)W{(o4LAO$0FULOBZ zF26;j8a$u=Q~adGKkb8aCiRRPsX0V?V=j~0^Qwjl!oX{0J)M$ZfJ^Q=+bgLKxqOk* zfr4JWLs$i9HD$kVXk~6z@bZyk;^v6JEB3vbqArHY$Jz%q8WKELBSwa&1fj zdrkd-woU~q6;Vo9QNvD%pY!@iWTt>^G`@FJ0XB1SO>VaioatPmc z5}&vgH`rqbe!$m`9VUYA%&qsC-jh@)L3%_++%q*Zx`N^q`=*JA?a)&mVONsO!h{ZMANx zwEm2+%lWLR(4MTxtP<6Qp$QQSs*-}iyooCz&s6d+UwNsRB;8#A&R;~wY&Q?A?(9WfOv$N==NK-AlG;tBa;+56>HDKLOr? z5^F8aTNmFH4kC|+pAD~0*~^#QQByTmqilyoHQVtS8DWP~BK-UciH1uTsy1d9!_-9jlrz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^~TTLt4C6dNK6ru{j8yEDeE-2z|TJ zo|ux96g?3mFaVIu#1lJ{&8x$cn63ez{jN<5wE*wgM=aa$#WFH0GRh7UL_KDI?OnPpB`{MW+zC^ zMg-$$bda42nkxbTdi)vVy7$|FwE+&1A+z+odQgG*2(HB>AwrYI>svxzL%|fS`+@c* z71CLj3IT2getInputType() != VehicleConfigurationSource::INPUT_PWM) { + bankMode = ActuatorSettings::BANKMODE_ONESHOT; + } else { + bankMode = ActuatorSettings::BANKMODE_PWM; + } break; - case VehicleConfigurationSource::ESC_SYNCHED: + case VehicleConfigurationSource::ESC_ONESHOT: escFrequence = RAPID_ESC_FREQUENCY; bankMode = ActuatorSettings::BANKMODE_ONESHOT125; break; diff --git a/ground/openpilotgcs/src/plugins/setupwizard/vehicleconfigurationsource.h b/ground/openpilotgcs/src/plugins/setupwizard/vehicleconfigurationsource.h index 285fec2da..521172b1f 100644 --- a/ground/openpilotgcs/src/plugins/setupwizard/vehicleconfigurationsource.h +++ b/ground/openpilotgcs/src/plugins/setupwizard/vehicleconfigurationsource.h @@ -63,7 +63,7 @@ public: MULTI_ROTOR_OCTO_X, MULTI_ROTOR_OCTO_V, MULTI_ROTOR_OCTO_COAX_X, MULTI_ROTOR_OCTO_COAX_PLUS, FIXED_WING_DUAL_AILERON, FIXED_WING_AILERON, FIXED_WING_ELEVON, FIXED_WING_VTAIL, HELI_CCPM, GROUNDVEHICLE_MOTORCYCLE, GROUNDVEHICLE_CAR, GROUNDVEHICLE_DIFFERENTIAL }; - enum ESC_TYPE { ESC_SYNCHED, ESC_RAPID, ESC_STANDARD, ESC_UNKNOWN }; + enum ESC_TYPE { ESC_ONESHOT, ESC_RAPID, ESC_STANDARD, ESC_UNKNOWN }; enum SERVO_TYPE { SERVO_ANALOG, SERVO_DIGITAL, SERVO_UNKNOWN }; enum INPUT_TYPE { INPUT_PWM, INPUT_PPM, INPUT_SBUS, INPUT_DSM, INPUT_UNKNOWN }; enum AIRSPEED_TYPE { AIRSPEED_ESTIMATE, AIRSPEED_EAGLETREE, AIRSPEED_MS4525, AIRSPEED_DISABLED }; diff --git a/ground/openpilotgcs/src/plugins/setupwizard/wizardResources.qrc b/ground/openpilotgcs/src/plugins/setupwizard/wizardResources.qrc index d81784825..c10a71c70 100644 --- a/ground/openpilotgcs/src/plugins/setupwizard/wizardResources.qrc +++ b/ground/openpilotgcs/src/plugins/setupwizard/wizardResources.qrc @@ -52,5 +52,7 @@ resources/bttn-upgrade-up.png resources/not-connected.png resources/connected.png + resources/bttn-oneshot-dwn.png + resources/bttn-oneshot-up.png