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
8bf2de5d
Commit
8bf2de5d
authored
Jun 11, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to new VehicleRotationCal implementation
width/height must be specified by user name
parent
8411ba0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
APMSensorsComponent.qml
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
+18
-3
SensorsComponent.qml
src/AutoPilotPlugins/PX4/SensorsComponent.qml
+0
-4
No files found.
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
View file @
8bf2de5d
...
...
@@ -450,12 +450,17 @@ QGCView {
Flow
{
anchors.topMargin
:
ScreenTools
.
defaultFontPixelWidth
anchors.top
:
orientationCalAreaHelpText
.
bottom
anchors.
left
:
orientationCalAreaHelpText
.
left
width
:
parent
.
width
height
:
parent
.
height
-
orientationCalAreaHelpText
.
implicitHe
ight
anchors.
bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.right
:
parent
.
r
ight
spacing
:
ScreenTools
.
defaultFontPixelWidth
property
real
indicatorWidth
:
(
width
/
3
)
-
(
spacing
*
2
)
property
real
indicatorHeight
:
(
height
/
2
)
-
spacing
VehicleRotationCal
{
width
:
parent
.
indicatorWidth
height
:
parent
.
indicatorHeight
visible
:
controller
.
orientationCalDownSideVisible
calValid
:
controller
.
orientationCalDownSideDone
calInProgress
:
controller
.
orientationCalDownSideInProgress
...
...
@@ -463,6 +468,8 @@ QGCView {
imageSource
:
controller
.
orientationCalDownSideRotate
?
"
qrc:///qmlimages/VehicleDownRotate.png
"
:
"
qrc:///qmlimages/VehicleDown.png
"
}
VehicleRotationCal
{
width
:
parent
.
indicatorWidth
height
:
parent
.
indicatorHeight
visible
:
controller
.
orientationCalUpsideDownSideVisible
calValid
:
controller
.
orientationCalUpsideDownSideDone
calInProgress
:
controller
.
orientationCalUpsideDownSideInProgress
...
...
@@ -470,6 +477,8 @@ QGCView {
imageSource
:
controller
.
orientationCalUpsideDownSideRotate
?
"
qrc:///qmlimages/VehicleUpsideDownRotate.png
"
:
"
qrc:///qmlimages/VehicleUpsideDown.png
"
}
VehicleRotationCal
{
width
:
parent
.
indicatorWidth
height
:
parent
.
indicatorHeight
visible
:
controller
.
orientationCalNoseDownSideVisible
calValid
:
controller
.
orientationCalNoseDownSideDone
calInProgress
:
controller
.
orientationCalNoseDownSideInProgress
...
...
@@ -477,6 +486,8 @@ QGCView {
imageSource
:
controller
.
orientationCalNoseDownSideRotate
?
"
qrc:///qmlimages/VehicleNoseDownRotate.png
"
:
"
qrc:///qmlimages/VehicleNoseDown.png
"
}
VehicleRotationCal
{
width
:
parent
.
indicatorWidth
height
:
parent
.
indicatorHeight
visible
:
controller
.
orientationCalTailDownSideVisible
calValid
:
controller
.
orientationCalTailDownSideDone
calInProgress
:
controller
.
orientationCalTailDownSideInProgress
...
...
@@ -484,6 +495,8 @@ QGCView {
imageSource
:
controller
.
orientationCalTailDownSideRotate
?
"
qrc:///qmlimages/VehicleTailDownRotate.png
"
:
"
qrc:///qmlimages/VehicleTailDown.png
"
}
VehicleRotationCal
{
width
:
parent
.
indicatorWidth
height
:
parent
.
indicatorHeight
visible
:
controller
.
orientationCalLeftSideVisible
calValid
:
controller
.
orientationCalLeftSideDone
calInProgress
:
controller
.
orientationCalLeftSideInProgress
...
...
@@ -491,6 +504,8 @@ QGCView {
imageSource
:
controller
.
orientationCalLeftSideRotate
?
"
qrc:///qmlimages/VehicleLeftRotate.png
"
:
"
qrc:///qmlimages/VehicleLeft.png
"
}
VehicleRotationCal
{
width
:
parent
.
indicatorWidth
height
:
parent
.
indicatorHeight
visible
:
controller
.
orientationCalRightSideVisible
calValid
:
controller
.
orientationCalRightSideDone
calInProgress
:
controller
.
orientationCalRightSideInProgress
...
...
src/AutoPilotPlugins/PX4/SensorsComponent.qml
View file @
8bf2de5d
...
...
@@ -454,15 +454,11 @@ QGCView {
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
width
:
parent
.
width
height
:
parent
.
height
-
orientationCalAreaHelpText
.
implicitHeight
spacing
:
ScreenTools
.
defaultFontPixelWidth
/
2
property
real
indicatorWidth
:
(
width
/
3
)
-
(
spacing
*
2
)
property
real
indicatorHeight
:
(
height
/
2
)
-
spacing
Component.onCompleted
:
console
.
log
(
"
indicatorWidth
"
,
indicatorWidth
,
"
indicatorHeight
"
,
indicatorHeight
)
VehicleRotationCal
{
width
:
parent
.
indicatorWidth
height
:
parent
.
indicatorHeight
...
...
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