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
cafffba6
Commit
cafffba6
authored
Jun 21, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for "Use compass" params
parent
4609fbe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
35 deletions
+30
-35
APMSensorsComponent.qml
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
+30
-35
No files found.
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
View file @
cafffba6
...
...
@@ -93,9 +93,9 @@ QGCView {
property
bool
compass3Use
:
compass3UseParamAvailable
?
compass3UseFact
.
value
:
true
// Id > = signals compass available, rot < 0 signals internal compass
property
bool
showCompass1
Rot
:
compass1Id
.
value
>
0
&&
compass1External
&&
compass1Use
property
bool
showCompass2
Rot
:
compass2Id
.
value
>
0
&&
compass2External
&&
compass2Use
property
bool
showCompass3
Rot
:
compass3Id
.
value
>
0
&&
compass3External
&&
compass3Use
property
bool
showCompass1
:
compass1Id
.
value
>
0
property
bool
showCompass2
:
compass2Id
.
value
>
0
property
bool
showCompass3
:
compass3Id
.
value
>
0
readonly
property
int
_calTypeCompass
:
1
///< Calibrate compass
readonly
property
int
_calTypeAccel
:
2
///< Calibrate accel
...
...
@@ -133,7 +133,7 @@ QGCView {
case
_calTypeSet
:
_orientationsDialogShowCompass
=
true
_orientationDialogHelp
=
orientationHelpSet
dialogTitle
=
qsTr
(
"
Se
tOrientation
s
"
)
dialogTitle
=
qsTr
(
"
Se
nsor Setting
s
"
)
break
}
...
...
@@ -304,18 +304,19 @@ QGCView {
}
Column
{
visible
:
_orientationsDialogShowCompass
visible
:
_orientationsDialogShowCompass
&&
showCompass1
Component
{
id
:
compass1ComponentLabel
FactCheckBox
{
text
:
"
Use Compass 1
"
fact
:
compass1UseFact
}
Column
{
visible
:
showCompass1Rot
QGCLabel
{
text
:
qsTr
(
"
Compass 1 Orientation:
"
)
}
}
Component
{
id
:
compass1ComponentCombo
FactComboBox
{
width
:
rotationColumnWidth
...
...
@@ -323,24 +324,22 @@ QGCView {
fact
:
compass1Rot
}
}
Loader
{
sourceComponent
:
showCompass1Rot
?
compass1ComponentLabel
:
null
}
Loader
{
sourceComponent
:
showCompass1Rot
?
compass1ComponentCombo
:
null
}
}
Column
{
visible
:
_orientationsDialogShowCompass
visible
:
_orientationsDialogShowCompass
&&
showCompass2
FactCheckBox
{
text
:
"
Use Compass 2
"
fact
:
compass2UseFact
}
Co
mponent
{
id
:
compass2ComponentLabel
Co
lumn
{
visible
:
showCompass1Rot
QGCLabel
{
text
:
qsTr
(
"
Compass 2 Orientation:
"
)
}
}
Component
{
id
:
compass2ComponentCombo
FactComboBox
{
width
:
rotationColumnWidth
...
...
@@ -348,24 +347,22 @@ QGCView {
fact
:
compass2Rot
}
}
Loader
{
sourceComponent
:
showCompass2Rot
?
compass2ComponentLabel
:
null
}
Loader
{
sourceComponent
:
showCompass2Rot
?
compass2ComponentCombo
:
null
}
}
Column
{
visible
:
_orientationsDialogShowCompass
visible
:
_orientationsDialogShowCompass
&&
showCompass3
Component
{
id
:
compass3ComponentLabel
FactCheckBox
{
text
:
"
Use Compass 3
"
fact
:
compass3UseFact
}
Column
{
visible
:
showCompass3Rot
QGCLabel
{
text
:
qsTr
(
"
Compass 3 Orientation
"
)
text
:
qsTr
(
"
Compass 3 Orientation
:
"
)
}
}
Component
{
id
:
compass3ComponentCombo
FactComboBox
{
width
:
rotationColumnWidth
...
...
@@ -373,8 +370,6 @@ QGCView {
fact
:
compass3Rot
}
}
Loader
{
sourceComponent
:
showCompass3Rot
?
compass3ComponentLabel
:
null
}
Loader
{
sourceComponent
:
showCompass3Rot
?
compass3ComponentCombo
:
null
}
}
}
// Column
}
// QGCFlickable
...
...
@@ -434,7 +429,7 @@ QGCView {
QGCButton
{
id
:
setOrientationsButton
width
:
parent
.
buttonWidth
text
:
qsTr
(
"
Se
t Orientation
s
"
)
text
:
qsTr
(
"
Se
nsor Setting
s
"
)
onClicked
:
showOrientationsDialog
(
_calTypeSet
)
}
}
// Column - Buttons
...
...
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