From 96eeba4ad9e7dc735f4239aaae8a431ccc1f92b7 Mon Sep 17 00:00:00 2001 From: hawkeyexp Date: Tue, 7 Aug 2018 02:42:29 +0200 Subject: [PATCH] Enable optional hardware setup / Hotfix ignition shutdown --- src/autoapp/UI/SettingsWindow.cpp | 6 + src/autoapp/UI/settingswindow.ui | 379 +++++++++++++++--------------- 2 files changed, 202 insertions(+), 183 deletions(-) diff --git a/src/autoapp/UI/SettingsWindow.cpp b/src/autoapp/UI/SettingsWindow.cpp index cc38a9a..fa1952c 100644 --- a/src/autoapp/UI/SettingsWindow.cpp +++ b/src/autoapp/UI/SettingsWindow.cpp @@ -193,6 +193,12 @@ void SettingsWindow::onSave() params.append("#"); params.append( std::string(ui_->lineEditWifiHotspotPassword->text().toStdString()) ); params.append("#"); + if (ui_->checkBoxHardwareSave->isChecked()) { + params.append("1"); + } else { + params.append("0"); + } + params.append("#"); system((std::string("/usr/local/bin/autoapp_helper setparams#") + std::string(params) + std::string(" &") ).c_str()); this->close(); } diff --git a/src/autoapp/UI/settingswindow.ui b/src/autoapp/UI/settingswindow.ui index 3d86aab..4d328d9 100644 --- a/src/autoapp/UI/settingswindow.ui +++ b/src/autoapp/UI/settingswindow.ui @@ -1224,7 +1224,7 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} 90 130 - 481 + 551 31 @@ -1300,7 +1300,7 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} 90 70 - 481 + 551 31 @@ -1399,7 +1399,7 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} 90 100 - 481 + 551 31 @@ -1409,7 +1409,7 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} - The hotspot is only available in dev mode and overrides client mode! + The hotspot is only available in dev mode and overrides client mode! SSID is fixed. @@ -2056,11 +2056,11 @@ subcontrol-position: center left; 0 10 646 - 141 + 101 - GPIO Settings + GPIO Settings (only working if enabled) @@ -2242,7 +2242,7 @@ subcontrol-position: center left; - 330 + 320 60 100 30 @@ -2393,8 +2393,8 @@ subcontrol-position: center left; - 110 - 100 + 530 + 60 100 30 @@ -2544,8 +2544,8 @@ subcontrol-position: center left; - 30 - 100 + 450 + 60 80 30 @@ -2554,174 +2554,10 @@ subcontrol-position: center left; X11 Pin - - - - 240 - 100 - 90 - 30 - - - - Rearcam Pin - - - - - - 330 - 100 - 100 - 30 - - - - false - - - - - - - - - - - - - - - - - - 1 - - - - - 2 - - - - - 3 - - - - - 4 - - - - - 5 - - - - - 6 - - - - - 7 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 14 - - - - - 15 - - - - - 16 - - - - - 17 - - - - - 18 - - - - - 19 - - - - - 20 - - - - - 21 - - - - - 22 - - - - - 23 - - - - - 24 - - - - - 25 - - - - - 26 - - - - 240 + 230 60 90 30 @@ -2799,13 +2635,13 @@ subcontrol-position: center left; 0 - 160 + 120 646 - 81 + 121 - Standalone GPIO Settings + Standalone GPIO Settings (working if set) @@ -2974,7 +2810,7 @@ subcontrol-position: center left; - 240 + 230 34 80 30 @@ -2987,7 +2823,7 @@ subcontrol-position: center left; - 330 + 320 34 100 30 @@ -3138,7 +2974,7 @@ subcontrol-position: center left; - 540 + 530 30 100 41 @@ -3176,7 +3012,7 @@ subcontrol-position: center left; - 460 + 450 34 80 30 @@ -3186,6 +3022,170 @@ subcontrol-position: center left; Delay + + + + 100 + 80 + 100 + 30 + + + + false + + + - - - + + + + - - - + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + 9 + + + + + 10 + + + + + 11 + + + + + 12 + + + + + 13 + + + + + 14 + + + + + 15 + + + + + 16 + + + + + 17 + + + + + 18 + + + + + 19 + + + + + 20 + + + + + 21 + + + + + 22 + + + + + 23 + + + + + 24 + + + + + 25 + + + + + 26 + + + + + + + 10 + 80 + 90 + 30 + + + + Rearcam Pin + + @@ -3525,6 +3525,19 @@ subcontrol-position: center left; "crankshaft rtc sync" in shell. + + + + 480 + 43 + 161 + 23 + + + + Exec setup on save? + +