From d8ec1c381f5032ef43251387c46d93ccccb62e3e Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 12 Sep 2013 10:04:51 +0200 Subject: [PATCH] Improving RC ui --- src/ui/QGCPX4VehicleConfig.cc | 16 ++++---- src/ui/QGCPX4VehicleConfig.ui | 69 ++++++++++++++++++++--------------- 2 files changed, 48 insertions(+), 37 deletions(-) diff --git a/src/ui/QGCPX4VehicleConfig.cc b/src/ui/QGCPX4VehicleConfig.cc index c06fdd54e..ca8574fad 100644 --- a/src/ui/QGCPX4VehicleConfig.cc +++ b/src/ui/QGCPX4VehicleConfig.cc @@ -469,15 +469,10 @@ void QGCPX4VehicleConfig::startCalibrationRC() identifyChannelMapping(i); } - // Try to identify inverted channels, but only for R/P/Y/T - for (int i = 0; i < 4; i++) { - detectChannelInversion(i); - } - //QMessageBox::information(0,"Information","Additional channels have not been mapped, but can be mapped in the channel table below."); configEnabled = false; - QMessageBox::information(0,"Information","Click OK, then move all sticks to their extreme positions, watching the min/max values to ensure you get the most range from your controller. This includes all switches"); - ui->rcCalibrationButton->setText(tr("Save RC Calibration")); + QMessageBox::information(0, tr("Information"),tr("Click OK, then move all sticks to their extreme positions, watching the min/max values to ensure you get the most range from your controller. This includes all switches")); + ui->rcCalibrationButton->setText(tr("Finish RC Calibration")); resetCalibrationRC(); calibrationEnabled = true; ui->rollWidget->showMinMax(); @@ -488,6 +483,8 @@ void QGCPX4VehicleConfig::startCalibrationRC() ui->radio6Widget->showMinMax(); ui->radio7Widget->showMinMax(); ui->radio8Widget->showMinMax(); + + QMessageBox::information(0, tr("Information"), tr("Please click on the button once finished")); } void QGCPX4VehicleConfig::stopCalibrationRC() @@ -495,6 +492,11 @@ void QGCPX4VehicleConfig::stopCalibrationRC() if (!calibrationEnabled) return; + // Try to identify inverted channels, but only for R/P/Y/T + for (int i = 0; i < 4; i++) { + detectChannelInversion(i); + } + QMessageBox::information(0,"Trims","Ensure all controls are centered and throttle is in the lowest position. Click OK to continue"); calibrationEnabled = false; diff --git a/src/ui/QGCPX4VehicleConfig.ui b/src/ui/QGCPX4VehicleConfig.ui index 26210d1c8..7c9fe43e2 100644 --- a/src/ui/QGCPX4VehicleConfig.ui +++ b/src/ui/QGCPX4VehicleConfig.ui @@ -198,30 +198,6 @@ - - - - Spektrum RC Pairing - - - - - - - DSM2 Mode - - - true - - - - - - - DSMX Mode - - - @@ -235,6 +211,39 @@ + + + + Spektrum RC + + + + + + Pair Receiver + + + + + + + DSM2 Mode + + + true + + + + + + + DSMX Mode + + + + + + @@ -870,8 +879,8 @@ 0 0 - 98 - 28 + 16 + 16 @@ -907,8 +916,8 @@ 0 0 - 98 - 28 + 16 + 16 @@ -958,8 +967,8 @@ 0 0 - 98 - 28 + 16 + 16 -- 2.22.0