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
8ccf64f0
Commit
8ccf64f0
authored
Dec 31, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2506 from DonLakeFlyer/MountMode
Add MNT_DEFLT_MODE combo
parents
848b864d
ae96582d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
20 deletions
+46
-20
APMCameraComponent.qml
src/AutoPilotPlugins/APM/APMCameraComponent.qml
+46
-20
No files found.
src/AutoPilotPlugins/APM/APMCameraComponent.qml
View file @
8ccf64f0
...
...
@@ -68,8 +68,6 @@ QGCView {
property
Fact
_mountAngMinPan
:
controller
.
getParameterFact
(
-
1
,
"
MNT_ANGMIN_PAN
"
)
property
Fact
_mountAngMaxPan
:
controller
.
getParameterFact
(
-
1
,
"
MNT_ANGMAX_PAN
"
)
// FIXME: WHat do we set this to? APM Planner sets to RC Tracking whenever a value is changed.
// Check default iris settings.
property
Fact
_mountDefaultMode
:
controller
.
getParameterFact
(
-
1
,
"
MNT_DEFLT_MODE
"
)
property
Fact
_mountType
:
controller
.
getParameterFact
(
-
1
,
"
MNT_TYPE
"
)
...
...
@@ -391,7 +389,7 @@ QGCView {
clip
:
true
anchors.fill
:
parent
contentHeight
:
gimbalDirectionPanLoader
.
y
+
gimbalDirectionPanLoader
.
height
contentWidth
:
gimbalTypeRectangle
.
x
+
gimbalType
Rectangle
.
width
contentWidth
:
settingsRectangle
.
x
+
settings
Rectangle
.
width
Loader
{
id
:
gimbalDirectionTiltLoader
...
...
@@ -449,28 +447,36 @@ QGCView {
}
QGCLabel
{
id
:
type
Label
id
:
settings
Label
anchors.leftMargin
:
_margins
anchors.left
:
gimbalDirectionTiltLoader
.
right
text
:
"
Gimbal
Type
"
text
:
"
Gimbal
Settings
"
font.weight
:
Font
.
DemiBold
}
Rectangle
{
id
:
gimbalType
Rectangle
id
:
settings
Rectangle
anchors.topMargin
:
_margins
/
2
anchors.left
:
type
Label
.
left
anchors.top
:
type
Label
.
bottom
width
:
rebootLabel
.
x
+
rebootLabel
.
width
+
_margins
height
:
rebootLabel
.
y
+
rebootLabel
.
height
+
_margins
anchors.left
:
settings
Label
.
left
anchors.top
:
settings
Label
.
bottom
width
:
gimbalModeCombo
.
x
+
gimbalModeCombo
.
width
+
_margins
height
:
gimbalModeCombo
.
y
+
gimbalModeCombo
.
height
+
_margins
color
:
palette
.
windowShade
QGCLabel
{
id
:
gimbalTypeLabel
anchors.margins
:
_margins
anchors.left
:
parent
.
left
anchors.baseline
:
gimbalTypeCombo
.
baseline
text
:
"
Type:
"
}
FactComboBox
{
id
:
gimbalTypeCombo
anchors.
margins
:
_margins
anchors.
topMargin
:
_margins
anchors.top
:
parent
.
top
anchors.left
:
parent
.
left
width
:
ScreenTools
.
defaultFontPixelWidth
*
15
anchors.left
:
gimbalModeCombo
.
left
width
:
gimbalModeCombo
.
width
fact
:
_mountType
indexModel
:
false
}
...
...
@@ -478,12 +484,32 @@ QGCView {
QGCLabel
{
id
:
rebootLabel
anchors.topMargin
:
_margins
/
2
anchors.left
:
gimbalTypeCombo
.
left
anchors.leftMargin
:
_margins
anchors.rightMargin
:
_margins
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
gimbalTypeCombo
.
bottom
width
:
ScreenTools
.
defaultFontPixelWidth
*
25
wrapMode
:
Text
.
WordWrap
text
:
"
Gimbal Type changes takes affect next reboot of autopilot
"
}
QGCLabel
{
id
:
gimbalModeLabel
anchors.margins
:
_margins
anchors.left
:
parent
.
left
anchors.baseline
:
gimbalModeCombo
.
baseline
text
:
"
Default Mode:
"
}
FactComboBox
{
id
:
gimbalModeCombo
anchors.margins
:
_margins
anchors.top
:
rebootLabel
.
bottom
anchors.left
:
gimbalModeLabel
.
right
width
:
ScreenTools
.
defaultFontPixelWidth
*
15
fact
:
_mountDefaultMode
indexModel
:
false
}
}
}
// Flickable
}
// QGCViewPanel
...
...
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