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
fe70b116
Commit
fe70b116
authored
Mar 19, 2017
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix radios, fix initial load setup
parent
37b638b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
SurveyItemEditor.qml
src/MissionEditor/SurveyItemEditor.qml
+8
-5
No files found.
src/MissionEditor/SurveyItemEditor.qml
View file @
fe70b116
...
...
@@ -48,12 +48,15 @@ Rectangle {
break
;
}
}
missionItem
.
cameraOrientationFixed
=
false
if
(
index
==
-
1
)
{
gridTypeCombo
.
currentIndex
=
_gridTypeManual
}
else
{
var
listIndex
=
index
-
_gridTypeCamera
gridTypeCombo
.
currentIndex
=
index
missionItem
.
cameraOrientationFixed
=
_vehicleCameraList
[
listIndex
].
fixedOrientation
if
(
index
!=
1
)
{
// Specific camera is selected
missionItem
.
cameraOrientationFixed
=
_vehicleCameraList
[
index
-
_gridTypeCamera
].
fixedOrientation
}
}
}
}
...
...
@@ -228,7 +231,7 @@ Rectangle {
QGCRadioButton
{
width
:
_editFieldWidth
text
:
"
Landscape
"
checked
:
missionItem
.
cameraOrientationLandscape
.
value
==
1
checked
:
!!
missionItem
.
cameraOrientationLandscape
.
value
exclusiveGroup
:
cameraOrientationGroup
onClicked
:
missionItem
.
cameraOrientationLandscape
.
value
=
1
}
...
...
@@ -236,7 +239,7 @@ Rectangle {
QGCRadioButton
{
id
:
cameraOrientationPortrait
text
:
"
Portrait
"
checked
:
missionItem
.
cameraOrientationLandscape
.
value
==
0
checked
:
!
missionItem
.
cameraOrientationLandscape
.
value
exclusiveGroup
:
cameraOrientationGroup
onClicked
:
missionItem
.
cameraOrientationLandscape
.
value
=
0
}
...
...
@@ -372,7 +375,7 @@ Rectangle {
QGCRadioButton
{
id
:
fixedAltitudeRadio
text
:
qsTr
(
"
Altitude
"
)
checked
:
missionItem
.
fixedValueIsAltitude
.
value
checked
:
!!
missionItem
.
fixedValueIsAltitude
.
value
exclusiveGroup
:
fixedValueGroup
onClicked
:
missionItem
.
fixedValueIsAltitude
.
value
=
1
}
...
...
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