Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
0cec7741
Commit
0cec7741
authored
Jun 06, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3494 from DonLakeFlyer/PowerSmallScreen
Power small screen
parents
52a18d72
4f85d753
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
19 deletions
+39
-19
PowerComponent.qml
src/AutoPilotPlugins/PX4/PowerComponent.qml
+34
-12
AppMessages.qml
src/QmlControls/AppMessages.qml
+5
-7
No files found.
src/AutoPilotPlugins/PX4/PowerComponent.qml
View file @
0cec7741
...
...
@@ -100,12 +100,12 @@ QGCView {
anchors.fill
:
parent
clip
:
true
contentHeight
:
innerColumn
.
height
contentWidth
:
panel
.
width
contentWidth
:
panel
.
width
flickableDirection
:
Flickable
.
VerticalFlick
Column
{
id
:
innerColumn
width
:
pa
nel
.
width
width
:
pa
rent
.
width
spacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
QGCLabel
{
...
...
@@ -185,7 +185,7 @@ QGCView {
QGCColoredImage
{
id
:
batteryImage
anchors.verticalCenter
:
voltageCol
.
verticalCenter
x
:
voltageCol
.
firstColumnWidth
+
textEditWidth
+
(
ScreenTools
.
defaultFontPixelWidth
*
3
)
x
:
voltageCol
.
firstColumnWidth
+
textEditWidth
+
(
ScreenTools
.
defaultFontPixelWidth
*
2
)
width
:
height
*
0.75
height
:
voltageCol
.
height
sourceSize.height
:
height
...
...
@@ -197,25 +197,37 @@ QGCView {
}
Column
{
anchors.leftMargin
:
ScreenTools
.
defaultFontPixelWidth
*
2
id
:
batteryMinMaxColumn
anchors.leftMargin
:
ScreenTools
.
defaultFontPixelWidth
anchors.left
:
batteryImage
.
right
anchors.verticalCenter
:
voltageCol
.
verticalCenter
spacing
:
ScreenTools
.
defaultFontPixelHeight
property
real
firstColumnWidth
:
Math
.
max
(
batteryMaxLabel
.
width
,
batteryMinLabel
.
contentWidth
)
+
ScreenTools
.
defaultFontPixelWidth
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
width
:
ScreenTools
.
defaultFontPixelWidth
*
12
id
:
batteryMaxLabel
text
:
qsTr
(
"
Battery Max:
"
)
}
QGCLabel
{
x
:
batteryMinMaxColumn
.
firstColumnWidth
text
:
(
battNumCells
.
value
*
battHighVolt
.
value
).
toFixed
(
1
)
+
'
V
'
}
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
width
:
ScreenTools
.
defaultFontPixelWidth
*
12
id
:
batteryMinLabel
text
:
qsTr
(
"
Battery Min:
"
)
}
QGCLabel
{
x
:
batteryMinMaxColumn
.
firstColumnWidth
text
:
(
battNumCells
.
value
*
battLowVolt
.
value
).
toFixed
(
1
)
+
'
V
'
}
}
...
...
@@ -236,12 +248,15 @@ QGCView {
id
:
escCalColumn
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
/
2
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
parent
.
top
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
color
:
palette
.
warningText
text
:
qsTr
(
"
WARNING: Propellers must be removed from vehicle prior to performing ESC calibration.
"
)
width
:
parent
.
width
color
:
palette
.
warningText
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
WARNING: Propellers must be removed from vehicle prior to performing ESC calibration.
"
)
}
QGCLabel
{
...
...
@@ -309,20 +324,27 @@ QGCView {
id
:
uavCanEscCalColumn
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
/
2
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
parent
.
top
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
color
:
palette
.
warningText
text
:
qsTr
(
"
WARNING: Propellers must be removed from vehicle prior to performing UAVCAN ESC configuration.
"
)
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
color
:
palette
.
warningText
text
:
qsTr
(
"
WARNING: Propellers must be removed from vehicle prior to performing UAVCAN ESC configuration.
"
)
}
QGCLabel
{
text
:
qsTr
(
"
ESC parameters will only be accessible in the editor after assignment.
"
)
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
ESC parameters will only be accessible in the editor after assignment.
"
)
}
QGCLabel
{
text
:
qsTr
(
"
Start the process, then turn each motor into its turn direction, in the order of their motor indices.
"
)
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
Start the process, then turn each motor into its turn direction, in the order of their motor indices.
"
)
}
QGCButton
{
...
...
src/QmlControls/AppMessages.qml
View file @
0cec7741
...
...
@@ -86,13 +86,11 @@ QGCView {
height
:
Math
.
round
(
ScreenTools
.
defaultFontPixelHeight
*
0.5
+
field
.
height
)
width
:
listview
.
width
Text
{
id
:
field
text
:
display
color
:
qgcPal
.
text
width
:
parent
.
width
wrapMode
:
Text
.
Wrap
font.family
:
ScreenTools
.
normalFontFamily
QGCLabel
{
id
:
field
text
:
display
width
:
parent
.
width
wrapMode
:
Text
.
Wrap
anchors.verticalCenter
:
parent
.
verticalCenter
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment