Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qgroundcontrol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Valentin Platzgummer
qgroundcontrol
Commits
cafffba6
Commit
cafffba6
authored
8 years ago
by
Don Gagne
Browse files
Options
Downloads
Patches
Plain Diff
Support for "Use compass" params
parent
4609fbe5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
+30
-35
30 additions, 35 deletions
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
with
30 additions
and
35 deletions
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
+
30
−
35
View file @
cafffba6
...
@@ -93,9 +93,9 @@ QGCView {
...
@@ -93,9 +93,9 @@ QGCView {
property
bool
compass3Use
:
compass3UseParamAvailable
?
compass3UseFact
.
value
:
true
property
bool
compass3Use
:
compass3UseParamAvailable
?
compass3UseFact
.
value
:
true
// Id > = signals compass available, rot < 0 signals internal compass
// Id > = signals compass available, rot < 0 signals internal compass
property
bool
showCompass1
Rot
:
compass1Id
.
value
>
0
&&
compass1External
&&
compass1Use
property
bool
showCompass1
:
compass1Id
.
value
>
0
property
bool
showCompass2
Rot
:
compass2Id
.
value
>
0
&&
compass2External
&&
compass2Use
property
bool
showCompass2
:
compass2Id
.
value
>
0
property
bool
showCompass3
Rot
:
compass3Id
.
value
>
0
&&
compass3External
&&
compass3Use
property
bool
showCompass3
:
compass3Id
.
value
>
0
readonly
property
int
_calTypeCompass
:
1
///< Calibrate compass
readonly
property
int
_calTypeCompass
:
1
///< Calibrate compass
readonly
property
int
_calTypeAccel
:
2
///< Calibrate accel
readonly
property
int
_calTypeAccel
:
2
///< Calibrate accel
...
@@ -133,7 +133,7 @@ QGCView {
...
@@ -133,7 +133,7 @@ QGCView {
case
_calTypeSet
:
case
_calTypeSet
:
_orientationsDialogShowCompass
=
true
_orientationsDialogShowCompass
=
true
_orientationDialogHelp
=
orientationHelpSet
_orientationDialogHelp
=
orientationHelpSet
dialogTitle
=
qsTr
(
"
Se
tOrientation
s
"
)
dialogTitle
=
qsTr
(
"
Se
nsor Setting
s
"
)
break
break
}
}
...
@@ -304,18 +304,19 @@ QGCView {
...
@@ -304,18 +304,19 @@ QGCView {
}
}
Column
{
Column
{
visible
:
_orientationsDialogShowCompass
visible
:
_orientationsDialogShowCompass
&&
showCompass1
Component
{
FactCheckBox
{
id
:
compass1ComponentLabel
text
:
"
Use Compass 1
"
fact
:
compass1UseFact
}
Column
{
visible
:
showCompass1Rot
QGCLabel
{
QGCLabel
{
text
:
qsTr
(
"
Compass 1 Orientation:
"
)
text
:
qsTr
(
"
Compass 1 Orientation:
"
)
}
}
}
Component
{
id
:
compass1ComponentCombo
FactComboBox
{
FactComboBox
{
width
:
rotationColumnWidth
width
:
rotationColumnWidth
...
@@ -323,24 +324,22 @@ QGCView {
...
@@ -323,24 +324,22 @@ QGCView {
fact
:
compass1Rot
fact
:
compass1Rot
}
}
}
}
Loader
{
sourceComponent
:
showCompass1Rot
?
compass1ComponentLabel
:
null
}
Loader
{
sourceComponent
:
showCompass1Rot
?
compass1ComponentCombo
:
null
}
}
}
Column
{
Column
{
visible
:
_orientationsDialogShowCompass
visible
:
_orientationsDialogShowCompass
&&
showCompass2
FactCheckBox
{
text
:
"
Use Compass 2
"
fact
:
compass2UseFact
}
Co
mponent
{
Co
lumn
{
id
:
compass2ComponentLabel
visible
:
showCompass1Rot
QGCLabel
{
QGCLabel
{
text
:
qsTr
(
"
Compass 2 Orientation:
"
)
text
:
qsTr
(
"
Compass 2 Orientation:
"
)
}
}
}
Component
{
id
:
compass2ComponentCombo
FactComboBox
{
FactComboBox
{
width
:
rotationColumnWidth
width
:
rotationColumnWidth
...
@@ -348,24 +347,22 @@ QGCView {
...
@@ -348,24 +347,22 @@ QGCView {
fact
:
compass2Rot
fact
:
compass2Rot
}
}
}
}
Loader
{
sourceComponent
:
showCompass2Rot
?
compass2ComponentLabel
:
null
}
Loader
{
sourceComponent
:
showCompass2Rot
?
compass2ComponentCombo
:
null
}
}
}
Column
{
Column
{
visible
:
_orientationsDialogShowCompass
visible
:
_orientationsDialogShowCompass
&&
showCompass3
Component
{
FactCheckBox
{
id
:
compass3ComponentLabel
text
:
"
Use Compass 3
"
fact
:
compass3UseFact
}
Column
{
visible
:
showCompass3Rot
QGCLabel
{
QGCLabel
{
text
:
qsTr
(
"
Compass 3 Orientation
"
)
text
:
qsTr
(
"
Compass 3 Orientation
:
"
)
}
}
}
Component
{
id
:
compass3ComponentCombo
FactComboBox
{
FactComboBox
{
width
:
rotationColumnWidth
width
:
rotationColumnWidth
...
@@ -373,8 +370,6 @@ QGCView {
...
@@ -373,8 +370,6 @@ QGCView {
fact
:
compass3Rot
fact
:
compass3Rot
}
}
}
}
Loader
{
sourceComponent
:
showCompass3Rot
?
compass3ComponentLabel
:
null
}
Loader
{
sourceComponent
:
showCompass3Rot
?
compass3ComponentCombo
:
null
}
}
}
}
// Column
}
// Column
}
// QGCFlickable
}
// QGCFlickable
...
@@ -434,7 +429,7 @@ QGCView {
...
@@ -434,7 +429,7 @@ QGCView {
QGCButton
{
QGCButton
{
id
:
setOrientationsButton
id
:
setOrientationsButton
width
:
parent
.
buttonWidth
width
:
parent
.
buttonWidth
text
:
qsTr
(
"
Se
t Orientation
s
"
)
text
:
qsTr
(
"
Se
nsor Setting
s
"
)
onClicked
:
showOrientationsDialog
(
_calTypeSet
)
onClicked
:
showOrientationsDialog
(
_calTypeSet
)
}
}
}
// Column - Buttons
}
// Column - Buttons
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment