Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
d90e7aa0
Commit
d90e7aa0
authored
Jun 23, 2016
by
Don Gagne
Committed by
GitHub
Jun 23, 2016
Browse files
Merge pull request #3610 from DonLakeFlyer/UseCompass
Support for "Use compass" params
parents
dfaafee2
cafffba6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
View file @
d90e7aa0
...
...
@@ -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
Supports
Markdown
0%
Try again
or
attach a new 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