Skip to content

Commit 583b754

Browse files
committed
added propeller icon
1 parent 1a60d28 commit 583b754

File tree

4 files changed

+42
-13
lines changed

4 files changed

+42
-13
lines changed

qgcimages.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
<file alias="MAVLinkInspector.svg">src/AnalyzeView/MAVLinkInspector.svg</file>
131131
<file alias="Megaphone.svg">src/UI/toolbar/Images/Megaphone.svg</file>
132132
<file alias="MotorComponentIcon.svg">src/AutoPilotPlugins/Common/Images/MotorComponentIcon.svg</file>
133+
<file alias="PropellerComponentIcon.svg">src/AutoPilotPlugins/Common/Images/PropellerComponentIcon.svg</file>
133134
<file alias="no-logging-light.svg">src/AutoPilotPlugins/PX4/Images/no-logging-light.svg</file>
134135
<file alias="no-logging.svg">src/AutoPilotPlugins/PX4/Images/no-logging.svg</file>
135136
<file alias="ObjectAvoidance.svg">src/AutoPilotPlugins/PX4/Images/ObjectAvoidance.svg</file>
Lines changed: 21 additions & 0 deletions
Loading

src/QmlControls/EscIndicator.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ Item {
106106
width: height
107107
anchors.top: parent.top
108108
anchors.bottom: parent.bottom
109-
source: "/qmlimages/MotorComponentIcon.svg"
109+
source: "/qmlimages/PropellerComponentIcon.svg"
110110
fillMode: Image.PreserveAspectFit
111111
sourceSize.height: height
112112
opacity: (_activeVehicle && _escDataAvailable) ? 1 : 0.5
113-
color: getEscStatusColor()
113+
color: qgcPal.buttonText
114114
}
115115

116116
Column {
@@ -127,7 +127,7 @@ Item {
127127
}
128128

129129
QGCLabel {
130-
color: qgcPal.buttonText
130+
color: getEscStatusColor()
131131
text: _escHealthy ? qsTr("OK") : qsTr("ERR")
132132
font.pointSize: ScreenTools.smallFontPointSize
133133
}

src/QmlControls/EscIndicatorPage.qml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,18 +230,25 @@ ToolIndicatorPage {
230230
spacing: ScreenTools.defaultFontPixelHeight * 0.1
231231
Layout.bottomMargin: index < Math.min(4, _allMotors.length) - 1 ? ScreenTools.defaultFontPixelHeight * 0.5 : 0
232232

233-
QGCLabel {
234-
text: qsTr("Motor %1").arg(_allMotors[index].id)
235-
color: qgcPal.text
236-
}
233+
RowLayout {
237234

238-
Rectangle {
239-
Layout.fillWidth: true
240-
height: ScreenTools.defaultFontPixelHeight * 0.15
241-
color: _allMotors[index].healthy ? qgcPal.colorGreen : qgcPal.colorRed
242-
radius: 2
235+
QGCLabel {
236+
text: qsTr("Motor %1").arg(_allMotors[index].id)
237+
color: qgcPal.text
238+
}
239+
QGCLabel {
240+
text: _allMotors[index].healthy ? qsTr("ONLINE") : qsTr("OFFLINE")
241+
color: _allMotors[index].healthy ? qgcPal.colorGreen : qgcPal.colorRed
242+
}
243243
}
244244

245+
// Rectangle {
246+
// Layout.fillWidth: true
247+
// height: ScreenTools.defaultFontPixelHeight * 0.15
248+
// color: _allMotors[index].healthy ? qgcPal.colorGreen : qgcPal.colorRed
249+
// radius: 2
250+
// }
251+
245252
GridLayout {
246253
Layout.fillWidth: true
247254
columns: 2
@@ -358,7 +365,7 @@ ToolIndicatorPage {
358365
visible: !_escDataAvailable
359366

360367
QGCLabel {
361-
text: qsTr("No ESC data available. ESC status information will be displayed here when the vehicle sends ESC_INFO and ESC_STATUS MAVLink messages.")
368+
text: qsTr("No ESC data available. Requires ESC_INFO and ESC_STATUS MAVLink messages.")
362369
wrapMode: Text.WordWrap
363370
Layout.fillWidth: true
364371
}

0 commit comments

Comments
 (0)