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
1d2af268
Commit
1d2af268
authored
Nov 18, 2015
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidying up Setup dialogs.
parent
5b90484b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
33 deletions
+50
-33
AirframeComponent.qml
src/AutoPilotPlugins/PX4/AirframeComponent.qml
+5
-6
PowerComponent.qml
src/AutoPilotPlugins/PX4/PowerComponent.qml
+39
-20
SafetyComponent.qml
src/AutoPilotPlugins/PX4/SafetyComponent.qml
+2
-2
PX4FlowSensor.qml
src/VehicleSetup/PX4FlowSensor.qml
+1
-1
VehicleSummary.qml
src/VehicleSetup/VehicleSummary.qml
+3
-4
No files found.
src/AutoPilotPlugins/PX4/AirframeComponent.qml
View file @
1d2af268
...
@@ -76,11 +76,10 @@ QGCView {
...
@@ -76,11 +76,10 @@ QGCView {
id
:
customConfigDialogComponent
id
:
customConfigDialogComponent
QGCViewMessage
{
QGCViewMessage
{
id
:
customConfigDialog
id
:
customConfigDialog
message
:
"
Your vehicle is using a custom airframe configuration.
"
+
message
:
"
Your vehicle is using a custom airframe configuration.
"
+
"
This configuration can only be modified through the Parameter Editor.
\n\n
"
+
"
This configuration can only be modified through the Parameter Editor.
\n\n
"
+
"
If you want to Reset your airframe configuration and select a standard configuration, click 'Reset' above.
"
"
If you want to Reset your airframe configuration and select a standard configuration, click 'Reset' above.
"
property
Fact
sys_autostart
:
controller
.
getParameterFact
(
-
1
,
"
SYS_AUTOSTART
"
)
property
Fact
sys_autostart
:
controller
.
getParameterFact
(
-
1
,
"
SYS_AUTOSTART
"
)
...
@@ -129,7 +128,7 @@ QGCView {
...
@@ -129,7 +128,7 @@ QGCView {
id
:
helpText
id
:
helpText
width
:
parent
.
width
-
applyButton
.
width
-
5
width
:
parent
.
width
-
applyButton
.
width
-
5
text
:
"
Please select your airframe type. Click 'Apply and Restart' to reboot the autopilot. Please re-connect then manually.
"
text
:
"
Please select your airframe type. Click 'Apply and Restart' to reboot the autopilot. Please re-connect then manually.
"
font.
pixelSize
:
ScreenTools
.
mediumFontPixelSize
font.
weight
:
Font
.
DemiBold
wrapMode
:
Text
.
WordWrap
wrapMode
:
Text
.
WordWrap
}
}
...
...
src/AutoPilotPlugins/PX4/PowerComponent.qml
View file @
1d2af268
...
@@ -119,11 +119,11 @@ QGCView {
...
@@ -119,11 +119,11 @@ QGCView {
Column
{
Column
{
id
:
innerColumn
id
:
innerColumn
width
:
panel
.
width
width
:
panel
.
width
spacing
:
ScreenTools
.
defaultFontPixelHeight
spacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
QGCLabel
{
QGCLabel
{
text
:
"
Battery
"
text
:
"
Battery
"
font.
pixelSize
:
ScreenTools
.
mediumFontPixelSize
font.
weight
:
Font
.
DemiBold
}
}
Rectangle
{
Rectangle
{
...
@@ -213,20 +213,30 @@ QGCView {
...
@@ -213,20 +213,30 @@ QGCView {
anchors.left
:
batteryImage
.
right
anchors.left
:
batteryImage
.
right
anchors.verticalCenter
:
voltageCol
.
verticalCenter
anchors.verticalCenter
:
voltageCol
.
verticalCenter
spacing
:
ScreenTools
.
defaultFontPixelHeight
spacing
:
ScreenTools
.
defaultFontPixelHeight
Row
{
QGCLabel
{
QGCLabel
{
text
:
"
Battery Max:
"
+
(
battNumCells
.
value
*
battHighVolt
.
value
).
toFixed
(
1
)
+
'
V
'
width
:
ScreenTools
.
defaultFontPixelWidth
*
12
text
:
"
Battery Max:
"
}
QGCLabel
{
text
:
(
battNumCells
.
value
*
battHighVolt
.
value
).
toFixed
(
1
)
+
'
V
'
}
}
}
Row
{
QGCLabel
{
QGCLabel
{
text
:
"
Battery Min:
"
+
(
battNumCells
.
value
*
battLowVolt
.
value
).
toFixed
(
1
)
+
'
V
'
width
:
ScreenTools
.
defaultFontPixelWidth
*
12
text
:
"
Battery Min:
"
}
QGCLabel
{
text
:
(
battNumCells
.
value
*
battLowVolt
.
value
).
toFixed
(
1
)
+
'
V
'
}
}
}
}
}
}
// Rectangle - Battery settings
}
// Rectangle - Battery settings
QGCLabel
{
QGCLabel
{
text
:
"
ESC PWM Minimum and Maximum Calibration
"
text
:
"
ESC PWM Minimum and Maximum Calibration
"
font.
pixelSize
:
ScreenTools
.
mediumFontPixelSize
font.
weight
:
Font
.
DemiBold
}
}
Rectangle
{
Rectangle
{
...
@@ -258,15 +268,22 @@ QGCView {
...
@@ -258,15 +268,22 @@ QGCView {
}
}
}
}
QGCCheckBox
{
id
:
showUAVCAN
text
:
"
Show UAVCAN Settings
"
}
QGCLabel
{
QGCLabel
{
text
:
"
UAVCAN Bus Configuration
"
text
:
"
UAVCAN Bus Configuration
"
font.pixelSize
:
ScreenTools
.
mediumFontPixelSize
font.weight
:
Font
.
DemiBold
visible
:
showUAVCAN
.
checked
}
}
Rectangle
{
Rectangle
{
width
:
parent
.
width
width
:
parent
.
width
height
:
uavCanConfigColumn
.
height
+
ScreenTools
.
defaultFontPixelHeight
height
:
uavCanConfigColumn
.
height
+
ScreenTools
.
defaultFontPixelHeight
color
:
palette
.
windowShade
color
:
palette
.
windowShade
visible
:
showUAVCAN
.
checked
Column
{
Column
{
id
:
uavCanConfigColumn
id
:
uavCanConfigColumn
...
@@ -288,14 +305,16 @@ QGCView {
...
@@ -288,14 +305,16 @@ QGCView {
QGCLabel
{
QGCLabel
{
text
:
"
UAVCAN Motor Index and Direction Assignment
"
text
:
"
UAVCAN Motor Index and Direction Assignment
"
font.pixelSize
:
ScreenTools
.
mediumFontPixelSize
font.weight
:
Font
.
DemiBold
visible
:
showUAVCAN
.
checked
}
}
Rectangle
{
Rectangle
{
width
:
parent
.
width
width
:
parent
.
width
height
:
uavCanEscCalColumn
.
height
+
ScreenTools
.
defaultFontPixelHeight
height
:
uavCanEscCalColumn
.
height
+
ScreenTools
.
defaultFontPixelHeight
color
:
palette
.
windowShade
color
:
palette
.
windowShade
enabled
:
uavcanEnabledCheckBox
.
checked
visible
:
showUAVCAN
.
checked
enabled
:
uavcanEnabledCheckBox
.
checked
Column
{
Column
{
id
:
uavCanEscCalColumn
id
:
uavCanEscCalColumn
...
@@ -326,7 +345,7 @@ QGCView {
...
@@ -326,7 +345,7 @@ QGCView {
QGCButton
{
QGCButton
{
text
:
"
Stop Assignment
"
text
:
"
Stop Assignment
"
width
:
ScreenTools
.
defaultFontPixelWidth
*
20
width
:
ScreenTools
.
defaultFontPixelWidth
*
20
onClicked
:
controller
.
S
topBusConfigureActuators
()
onClicked
:
controller
.
s
topBusConfigureActuators
()
}
}
}
}
}
}
...
@@ -338,7 +357,7 @@ QGCView {
...
@@ -338,7 +357,7 @@ QGCView {
QGCLabel
{
QGCLabel
{
text
:
"
Advanced Power Settings
"
text
:
"
Advanced Power Settings
"
font.
pixelSize
:
ScreenTools
.
mediumFontPixelSize
font.
weight
:
Font
.
DemiBold
visible
:
showAdvanced
.
checked
visible
:
showAdvanced
.
checked
}
}
...
...
src/AutoPilotPlugins/PX4/SafetyComponent.qml
View file @
1d2af268
...
@@ -65,7 +65,7 @@ QGCView {
...
@@ -65,7 +65,7 @@ QGCView {
//-----------------------------------------------------------------
//-----------------------------------------------------------------
//-- Return Home Triggers
//-- Return Home Triggers
QGCLabel
{
text
:
"
Triggers For Return Home
"
;
font.
pixelSize
:
ScreenTools
.
mediumFontPixelSize
;
}
QGCLabel
{
text
:
"
Triggers For Return Home
"
;
font.
weight
:
Font
.
DemiBold
;
}
Item
{
height
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
;
width
:
1
}
// spacer
Item
{
height
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
;
width
:
1
}
// spacer
...
@@ -132,7 +132,7 @@ QGCView {
...
@@ -132,7 +132,7 @@ QGCView {
//-----------------------------------------------------------------
//-----------------------------------------------------------------
//-- Return Home Settings
//-- Return Home Settings
QGCLabel
{
text
:
"
Return Home Settings
"
;
font.
pixelSize
:
ScreenTools
.
mediumFontPixelSize
;
}
QGCLabel
{
text
:
"
Return Home Settings
"
;
font.
weight
:
Font
.
DemiBold
;
}
Item
{
height
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
;
width
:
1
}
// spacer
Item
{
height
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
;
width
:
1
}
// spacer
...
...
src/VehicleSetup/PX4FlowSensor.qml
View file @
1d2af268
...
@@ -49,7 +49,7 @@ QGCView {
...
@@ -49,7 +49,7 @@ QGCView {
QGCLabel
{
QGCLabel
{
id
:
titleLabel
id
:
titleLabel
text
:
"
PX4Flow Camera
"
text
:
"
PX4Flow Camera
"
font.
pixelSize
:
ScreenTools
.
mediumFontPixelSize
font.
weight
:
Font
.
DemiBold
}
}
Image
{
Image
{
...
...
src/VehicleSetup/VehicleSummary.qml
View file @
1d2af268
...
@@ -92,11 +92,10 @@ Rectangle {
...
@@ -92,11 +92,10 @@ Rectangle {
width
:
parent
.
width
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
wrapMode
:
Text
.
WordWrap
color
:
setupComplete
?
qgcPal
.
text
:
qgcPal
.
warningText
color
:
setupComplete
?
qgcPal
.
text
:
qgcPal
.
warningText
font.
pixelSize
:
ScreenTools
.
mediumFontPixelSize
font.
weight
:
Font
.
DemiBold
text
:
setupComplete
?
text
:
setupComplete
?
"
Below you will find a summary of the settings for your vehicle. To the left are the setup menus for each component.
"
:
"
Below you will find a summary of the settings for your vehicle. To the left are the setup menus for each component.
"
:
"
WARNING: Your vehicle requires setup prior to flight. Please resolve the items marked in red using the menu on the left.
"
"
WARNING: Your vehicle requires setup prior to flight. Please resolve the items marked in red using the menu on the left.
"
property
bool
setupComplete
:
multiVehicleManager
.
activeVehicle
.
autopilot
.
setupComplete
property
bool
setupComplete
:
multiVehicleManager
.
activeVehicle
.
autopilot
.
setupComplete
}
}
...
...
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