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
3e2699ee
Commit
3e2699ee
authored
May 03, 2016
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PX4: Fix sensor config for mag
parent
d7d4c331
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
SensorsComponent.qml
src/AutoPilotPlugins/PX4/SensorsComponent.qml
+21
-21
SensorsComponentController.cc
src/AutoPilotPlugins/PX4/SensorsComponentController.cc
+3
-3
No files found.
src/AutoPilotPlugins/PX4/SensorsComponent.qml
View file @
3e2699ee
...
...
@@ -427,13 +427,13 @@ QGCView {
calInProgressText
:
controller
.
orientationCalDownSideRotate
?
qsTr
(
"
Rotate
"
)
:
qsTr
(
"
Hold Still
"
)
imageSource
:
controller
.
orientationCalDownSideRotate
?
"
qrc:///qmlimages/VehicleDownRotate.png
"
:
"
qrc:///qmlimages/VehicleDown.png
"
}
//
VehicleRotationCal {
//
visible: controller.orientationCalUpsideDownSideVisible
//
calValid: controller.orientationCalUpsideDownSideDone
//
calInProgress: controller.orientationCalUpsideDownSideInProgress
//
calInProgressText: controller.orientationCalUpsideDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
//
imageSource: controller.orientationCalUpsideDownSideRotate ? "qrc:///qmlimages/VehicleUpsideDownRotate.png" : "qrc:///qmlimages/VehicleUpsideDown.png"
//
}
VehicleRotationCal
{
visible
:
controller
.
orientationCalUpsideDownSideVisible
calValid
:
controller
.
orientationCalUpsideDownSideDone
calInProgress
:
controller
.
orientationCalUpsideDownSideInProgress
calInProgressText
:
controller
.
orientationCalUpsideDownSideRotate
?
qsTr
(
"
Rotate
"
)
:
qsTr
(
"
Hold Still
"
)
imageSource
:
controller
.
orientationCalUpsideDownSideRotate
?
"
qrc:///qmlimages/VehicleUpsideDownRotate.png
"
:
"
qrc:///qmlimages/VehicleUpsideDown.png
"
}
VehicleRotationCal
{
visible
:
controller
.
orientationCalNoseDownSideVisible
calValid
:
controller
.
orientationCalNoseDownSideDone
...
...
@@ -441,13 +441,13 @@ QGCView {
calInProgressText
:
controller
.
orientationCalNoseDownSideRotate
?
qsTr
(
"
Rotate
"
)
:
qsTr
(
"
Hold Still
"
)
imageSource
:
controller
.
orientationCalNoseDownSideRotate
?
"
qrc:///qmlimages/VehicleNoseDownRotate.png
"
:
"
qrc:///qmlimages/VehicleNoseDown.png
"
}
//
VehicleRotationCal {
//
visible: controller.orientationCalTailDownSideVisible
//
calValid: controller.orientationCalTailDownSideDone
//
calInProgress: controller.orientationCalTailDownSideInProgress
//
calInProgressText: controller.orientationCalTailDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
//
imageSource: controller.orientationCalTailDownSideRotate ? "qrc:///qmlimages/VehicleTailDownRotate.png" : "qrc:///qmlimages/VehicleTailDown.png"
//
}
VehicleRotationCal
{
visible
:
controller
.
orientationCalTailDownSideVisible
calValid
:
controller
.
orientationCalTailDownSideDone
calInProgress
:
controller
.
orientationCalTailDownSideInProgress
calInProgressText
:
controller
.
orientationCalTailDownSideRotate
?
qsTr
(
"
Rotate
"
)
:
qsTr
(
"
Hold Still
"
)
imageSource
:
controller
.
orientationCalTailDownSideRotate
?
"
qrc:///qmlimages/VehicleTailDownRotate.png
"
:
"
qrc:///qmlimages/VehicleTailDown.png
"
}
VehicleRotationCal
{
visible
:
controller
.
orientationCalLeftSideVisible
calValid
:
controller
.
orientationCalLeftSideDone
...
...
@@ -455,13 +455,13 @@ QGCView {
calInProgressText
:
controller
.
orientationCalLeftSideRotate
?
qsTr
(
"
Rotate
"
)
:
qsTr
(
"
Hold Still
"
)
imageSource
:
controller
.
orientationCalLeftSideRotate
?
"
qrc:///qmlimages/VehicleLeftRotate.png
"
:
"
qrc:///qmlimages/VehicleLeft.png
"
}
//
VehicleRotationCal {
//
visible: controller.orientationCalRightSideVisible
//
calValid: controller.orientationCalRightSideDone
//
calInProgress: controller.orientationCalRightSideInProgress
//
calInProgressText: controller.orientationCalRightSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
//
imageSource: controller.orientationCalRightSideRotate ? "qrc:///qmlimages/VehicleRightRotate.png" : "qrc:///qmlimages/VehicleRight.png"
//
}
VehicleRotationCal
{
visible
:
controller
.
orientationCalRightSideVisible
calValid
:
controller
.
orientationCalRightSideDone
calInProgress
:
controller
.
orientationCalRightSideInProgress
calInProgressText
:
controller
.
orientationCalRightSideRotate
?
qsTr
(
"
Rotate
"
)
:
qsTr
(
"
Hold Still
"
)
imageSource
:
controller
.
orientationCalRightSideRotate
?
"
qrc:///qmlimages/VehicleRightRotate.png
"
:
"
qrc:///qmlimages/VehicleRight.png
"
}
}
}
...
...
src/AutoPilotPlugins/PX4/SensorsComponentController.cc
View file @
3e2699ee
...
...
@@ -314,10 +314,10 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in
}
else
if
(
text
==
"mag"
)
{
_magCalInProgress
=
true
;
_orientationCalDownSideVisible
=
true
;
_orientationCalUpsideDownSideVisible
=
tru
e
;
_orientationCalUpsideDownSideVisible
=
fals
e
;
_orientationCalLeftSideVisible
=
true
;
_orientationCalRightSideVisible
=
tru
e
;
_orientationCalTailDownSideVisible
=
tru
e
;
_orientationCalRightSideVisible
=
fals
e
;
_orientationCalTailDownSideVisible
=
fals
e
;
_orientationCalNoseDownSideVisible
=
true
;
}
else
if
(
text
==
"gyro"
)
{
_gyroCalInProgress
=
true
;
...
...
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