mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
OP-1660 Display limits for every FlightMode position on Flightmode channel
This commit is contained in:
parent
59e461f6ce
commit
02903e7858
@ -1,5 +1,11 @@
|
||||
<RCC>
|
||||
<qresource prefix="/configgadget">
|
||||
<file>images/flightmode_bg1.png</file>
|
||||
<file>images/flightmode_bg2.png</file>
|
||||
<file>images/flightmode_bg3.png</file>
|
||||
<file>images/flightmode_bg4.png</file>
|
||||
<file>images/flightmode_bg5.png</file>
|
||||
<file>images/flightmode_bg6.png</file>
|
||||
<file>images/help2.png</file>
|
||||
<file>images/ahrs-calib.svg</file>
|
||||
<file>images/multirotor-shapes.svg</file>
|
||||
|
@ -1536,6 +1536,26 @@ void ConfigInputWidget::updatePositionSlider()
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
QString fmNumber = QString().setNum(manualSettingsDataPriv.FlightModeNumber);
|
||||
int count = 0;
|
||||
foreach(QSlider * sp, findChildren<QSlider *>()) {
|
||||
// Find FlightMode slider and apply stylesheet
|
||||
if (sp->objectName() == "channelNeutral") {
|
||||
if (count == 4) {
|
||||
sp->setStyleSheet(
|
||||
"QSlider::groove:horizontal {border: 2px solid rgb(196, 196, 196); height: 20px; margin 9px 9px; border-radius: 4px; "
|
||||
"border-image:url(:/configgadget/images/flightmode_bg" + fmNumber + ".png); }"
|
||||
"QSlider::add-page:horizontal { background: none; border: none; }"
|
||||
"QSlider::sub-page:horizontal { background: none; border: none; }"
|
||||
"QSlider::handle:horizontal { background: rgba(196, 196, 196, 255); width: 10px; height: 28px; "
|
||||
"margin: -4px -4px; border-radius: 3px; border: 1px solid #777; }");
|
||||
count++;
|
||||
} else {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ConfigInputWidget::updateCalibration()
|
||||
|
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg1.png
Normal file
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 499 B |
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg2.png
Normal file
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 866 B |
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg3.png
Normal file
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg4.png
Normal file
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg5.png
Normal file
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg6.png
Normal file
BIN
ground/openpilotgcs/src/plugins/config/images/flightmode_bg6.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Loading…
x
Reference in New Issue
Block a user