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
a95b2c4a
Commit
a95b2c4a
authored
May 20, 2017
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Camere trigger button for testing
parent
a40c121c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
CameraComponent.qml
src/AutoPilotPlugins/PX4/CameraComponent.qml
+19
-6
No files found.
src/AutoPilotPlugins/PX4/CameraComponent.qml
View file @
a95b2c4a
...
...
@@ -36,10 +36,10 @@ SetupPage {
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
property
real
_editFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
25
property
Fact
_camTriggerMode
:
controller
.
getParameterFact
(
-
1
,
"
TRIG_MODE
"
)
property
Fact
_camTriggerInterface
:
controller
.
getParameterFact
(
-
1
,
"
TRIG_INTERFACE
"
,
false
)
property
Fact
_camTriggerPol
:
controller
.
getParameterFact
(
-
1
,
"
TRIG_POLARITY
"
,
false
)
// Don't bitch about missing as these only exist if trigger mode is enabled
property
Fact
_auxPins
:
controller
.
getParameterFact
(
-
1
,
"
TRIG_PINS
"
,
false
)
// Ditto
property
Fact
_camTriggerMode
:
controller
.
getParameterFact
(
-
1
,
"
TRIG_MODE
"
)
property
Fact
_camTriggerInterface
:
controller
.
getParameterFact
(
-
1
,
"
TRIG_INTERFACE
"
,
false
/* reportMissing */
)
property
Fact
_camTriggerPol
:
controller
.
getParameterFact
(
-
1
,
"
TRIG_POLARITY
"
,
false
/* reportMissing */
)
property
Fact
_auxPins
:
controller
.
getParameterFact
(
-
1
,
"
TRIG_PINS
"
,
false
/* reportMissing */
)
property
bool
_rebooting
:
false
property
var
_auxChannels
:
[
0
,
0
,
0
,
0
,
0
,
0
]
...
...
@@ -154,26 +154,28 @@ SetupPage {
text
:
qsTr
(
"
Time Interval
"
)
anchors.baseline
:
timeIntervalField
.
baseline
color
:
qgcPal
.
text
visible
:
timeIntervalField
.
visible
}
FactTextField
{
id
:
timeIntervalField
fact
:
controller
.
getParameterFact
(
-
1
,
"
TRIG_INTERVAL
"
,
false
)
showUnits
:
true
Layout.minimumWidth
:
_editFieldWidth
enabled
:
_camTriggerMode
.
value
===
2
visible
:
_camTriggerMode
.
value
===
2
}
QGCLabel
{
text
:
qsTr
(
"
Distance Interval
"
)
anchors.baseline
:
trigDistField
.
baseline
color
:
qgcPal
.
text
visible
:
trigDistField
.
visible
}
FactTextField
{
id
:
trigDistField
fact
:
controller
.
getParameterFact
(
-
1
,
"
TRIG_DISTANCE
"
,
false
)
showUnits
:
true
Layout.minimumWidth
:
_editFieldWidth
enabled
:
_camTriggerMode
.
value
===
3
visible
:
_camTriggerMode
.
value
===
3
}
}
}
// QGCGroupBox - Camera Trigger
...
...
@@ -298,6 +300,17 @@ SetupPage {
}
}
}
}
// QGCGroupBox - Hardware Settings
QGCGroupBox
{
title
:
qsTr
(
"
Camera Test
"
)
Layout.fillWidth
:
true
QGCButton
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
text
:
qsTr
(
"
Trigger Camera
"
)
onClicked
:
controller
.
vehicle
.
triggerCamera
()
}
}
}
}
...
...
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