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
e9ea3479
Commit
e9ea3479
authored
Oct 05, 2018
by
Willian Galvani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
APMSubMotorDisplay: Display motor configurations for each sub frame
parent
d4c9f2ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
APMSubMotorDisplay.qml
src/QmlControls/APMSubMotorDisplay.qml
+44
-0
No files found.
src/QmlControls/APMSubMotorDisplay.qml
0 → 100644
View file @
e9ea3479
import
QtQuick
2.3
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
1.0
import
QGroundControl
.
FactSystem
1.0
import
QGroundControl
.
FactControls
1.0
Item
{
id
:
root
property
var
frameType
:
0
// TODO need a better class for getting vehicle parameters into qml?
// according to comments in FactPanelController.h, this is not the intended use case
function
getImage
()
{
switch
(
frameType
)
{
case
0
:
return
"
qrc:///qmlimages/Frames/BlueROV1.png
"
case
1
:
return
"
qrc:///qmlimages/Frames/Vectored.png
"
case
2
:
return
"
qrc:///qmlimages/Frames/Vectored6DOF.png
"
case
4
:
return
"
qrc:///qmlimages/Frames/SimpleROV-3.png
"
case
5
:
return
"
qrc:///qmlimages/Frames/SimpleROV-4.png
"
}
return
""
}
Component.onCompleted
:
{
console
.
log
(
getImage
())
subImage
.
source
=
getImage
()
}
Image
{
id
:
subImage
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.fill
:
parent
fillMode
:
Image
.
PreserveAspectFit
smooth
:
true
mipmap
:
true
}
}
// Item
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