Browse Source

Tweak orientation UI for better usability

QGC4.4
Don Gagne 9 years ago
parent
commit
9831adcdd5
  1. 25
      src/AutoPilotPlugins/PX4/SensorsComponent.qml

25
src/AutoPilotPlugins/PX4/SensorsComponent.qml

@ -40,8 +40,8 @@ QGCView { @@ -40,8 +40,8 @@ QGCView {
// Help text which is shown both in the status text area prior to pressing a cal button and in the
// pre-calibration dialog.
readonly property string boardRotationText: qsTr("If the autopilot is mounted in flight direction, leave the default value (ROTATION_NONE)")
readonly property string compassRotationText: qsTr("If the compass or GPS module is mounted in flight direction, leave the default value (ROTATION_NONE)")
readonly property string boardRotationText: qsTr("If the orientation is in the direction of flight, select ROTATION_NONE.")
readonly property string compassRotationText: qsTr("If the orientation is in the direction of flight, select ROTATION_NONE.")
readonly property string compassHelp: qsTr("For Compass calibration you will need to rotate your vehicle through a number of positions. Most users prefer to do this wirelessly with the telemetry link.")
readonly property string gyroHelp: qsTr("For Gyroscope calibration you will need to place your vehicle on a surface and leave it still.")
@ -469,13 +469,11 @@ QGCView { @@ -469,13 +469,11 @@ QGCView {
anchors.leftMargin: ScreenTools.defaultFontPixelWidth
anchors.left: orientationCalArea.right
x: parent.width - rotationColumnWidth
spacing: ScreenTools.defaultFontPixelWidth
Column {
spacing: ScreenTools.defaultFontPixelWidth
spacing: ScreenTools.defaultFontPixelHeight
QGCLabel {
text: qsTr("Autopilot Orientation")
font.pointSize: ScreenTools.mediumFontPointSize
text: qsTr("Set Orientations")
}
QGCLabel {
@ -484,6 +482,11 @@ QGCView { @@ -484,6 +482,11 @@ QGCView {
text: boardRotationText
}
Column {
QGCLabel {
text: qsTr("Autpilot Orientation:")
}
FactComboBox {
id: boardRotationCombo
width: rotationColumnWidth;
@ -493,14 +496,12 @@ QGCView { @@ -493,14 +496,12 @@ QGCView {
}
Column {
spacing: ScreenTools.defaultFontPixelWidth
// Compass 0 rotation
Component {
id: compass0ComponentLabel2
QGCLabel {
text: qsTr("External Compass Orientation")
text: qsTr("External Compass Orientation:")
}
}
@ -520,14 +521,12 @@ QGCView { @@ -520,14 +521,12 @@ QGCView {
}
Column {
spacing: ScreenTools.defaultFontPixelWidth
// Compass 1 rotation
Component {
id: compass1ComponentLabel2
QGCLabel {
text: qsTr("External Compass 1 Orientation")
text: qsTr("External Compass 1 Orientation:")
}
}

Loading…
Cancel
Save