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
0a23e490
Commit
0a23e490
authored
Mar 24, 2017
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fly: Fix click to set new mission item
parent
8e37d8d7
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
44 additions
and
21 deletions
+44
-21
qgroundcontrol.qrc
qgroundcontrol.qrc
+0
-2
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+6
-1
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+1
-1
FWLandingPatternMapVisual.qml
src/MissionEditor/FWLandingPatternMapVisual.qml
+6
-2
MissionEditor.qml
src/MissionEditor/MissionEditor.qml
+7
-2
MissionItemMapVisual.qml
src/MissionEditor/MissionItemMapVisual.qml
+4
-1
MissionSettingsMapVisual.qml
src/MissionEditor/MissionSettingsMapVisual.qml
+6
-2
SimpleItemMapVisual.qml
src/MissionEditor/SimpleItemMapVisual.qml
+5
-2
SurveyMapVisual.qml
src/MissionEditor/SurveyMapVisual.qml
+8
-8
MissionController.cc
src/MissionManager/MissionController.cc
+1
-0
No files found.
qgroundcontrol.qrc
View file @
0a23e490
...
...
@@ -40,7 +40,6 @@
<file alias="MixersComponent.qml">src/AutoPilotPlugins/Common/MixersComponent.qml</file>
<file alias="MockLink.qml">src/ui/preferences/MockLink.qml</file>
<file alias="MockLinkSettings.qml">src/ui/preferences/MockLinkSettings.qml</file>
<file alias="MultiVehicleView.qml">src/MultiVehicle/MultiVehicleView.qml</file>
<file alias="MotorComponent.qml">src/AutoPilotPlugins/Common/MotorComponent.qml</file>
<file alias="OfflineMap.qml">src/QtLocationPlugin/QMLControl/OfflineMap.qml</file>
<file alias="PowerComponent.qml">src/AutoPilotPlugins/PX4/PowerComponent.qml</file>
...
...
@@ -58,7 +57,6 @@
<file alias="QGroundControl/Controls/FWLandingPatternMapVisual.qml">src/MissionEditor/FWLandingPatternMapVisual.qml</file>
<file alias="QGroundControl/Controls/GeoFenceEditor.qml">src/MissionEditor/GeoFenceEditor.qml</file>
<file alias="QGroundControl/Controls/GeoFenceMapVisuals.qml">src/MissionEditor/GeoFenceMapVisuals.qml</file>
<file alias="QGroundControl/Controls/GuidedBar.qml">src/QmlControls/GuidedBar.qml</file>
<file alias="QGroundControl/Controls/IndicatorButton.qml">src/QmlControls/IndicatorButton.qml</file>
<file alias="QGroundControl/Controls/JoystickThumbPad.qml">src/QmlControls/JoystickThumbPad.qml</file>
<file alias="QGroundControl/Controls/MainToolBar.qml">src/ui/toolbar/MainToolBar.qml</file>
...
...
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
0a23e490
...
...
@@ -257,7 +257,12 @@ FlightMap {
model
:
_mainIsMap
?
missionController
.
visualItems
:
0
delegate
:
MissionItemMapVisual
{
map
:
flightMap
map
:
flightMap
onClicked
:
{
_retaskSequence
=
object
.
sequenceNumber
flightWidgets
.
guidedModeBar
.
confirmAction
(
parent
.
flightWidgets
.
guidedModeBar
.
confirmRetask
)
}
}
}
...
...
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
0a23e490
...
...
@@ -318,7 +318,7 @@ Item {
guidedModeConfirm
.
confirmText
=
qsTr
(
"
move vehicle
"
)
break
;
case
confirmRetask
:
guidedModeConfirm
.
confirmText
=
qsTr
(
"
active waypoint change
"
)
guidedModeConfirm
.
confirmText
=
qsTr
(
"
activ
at
e waypoint change
"
)
break
;
case
confirmOrbit
:
guidedModeConfirm
.
confirmText
=
qsTr
(
"
enter orbit mode
"
)
...
...
src/MissionEditor/FWLandingPatternMapVisual.qml
View file @
0a23e490
...
...
@@ -20,8 +20,12 @@ import QGroundControl.FlightMap 1.0
/// Fixed Wing Landing Pattern map visuals
Item
{
id
:
_root
property
var
map
///< Map control to place item in
signal
clicked
(
int
sequenceNumber
)
property
var
_missionItem
:
object
property
var
_itemVisuals
:
[
]
property
var
_mouseArea
...
...
@@ -207,7 +211,7 @@ Item {
label
:
"
Loiter
"
checked
:
_missionItem
.
isCurrentItem
onClicked
:
setCurrentItem
(
_missionItem
.
sequenceNumber
)
onClicked
:
_root
.
clicked
(
_missionItem
.
sequenceNumber
)
}
}
}
...
...
@@ -241,7 +245,7 @@ Item {
label
:
"
Land
"
checked
:
_missionItem
.
isCurrentItem
onClicked
:
setCurrentItem
(
_missionItem
.
sequenceNumber
)
onClicked
:
_root
.
clicked
(
_missionItem
.
sequenceNumber
)
}
}
}
...
...
src/MissionEditor/MissionEditor.qml
View file @
0a23e490
...
...
@@ -49,7 +49,7 @@ QGCView {
property
var
activeVehiclePosition
:
_activeVehicle
?
_activeVehicle
.
coordinate
:
QtPositioning
.
coordinate
()
property
bool
_lightWidgetBorders
:
editorMap
.
isSatelliteMap
property
bool
_addWaypointOnClick
:
false
property
bool
_singleComplexItem
:
missionController
.
complexMissionItemNames
.
length
==
1
property
bool
_singleComplexItem
:
missionController
.
complexMissionItemNames
.
length
==
=
1
/// The controller which should be called for load/save, send to/from vehicle calls
property
var
_syncDropDownController
:
missionController
...
...
@@ -459,7 +459,8 @@ QGCView {
model
:
missionController
.
visualItems
delegate
:
MissionItemMapVisual
{
map
:
editorMap
map
:
editorMap
onClicked
:
setCurrentItem
(
sequenceNumber
)
}
}
...
...
@@ -702,6 +703,10 @@ QGCView {
property
bool
_showZoom
:
!
ScreenTools
.
isMobile
property
bool
mySingleComplexItem
:
_singleComplexItem
onMySingleComplexItemChanged
:
console
.
log
(
model
[
1
].
dropPanelComponent
)
model
:
[
{
name
:
"
Waypoint
"
,
...
...
src/MissionEditor/MissionItemMapVisual.qml
View file @
0a23e490
...
...
@@ -17,12 +17,14 @@ import QGroundControl.Palette 1.0
import
QGroundControl
.
Controls
1.0
/// Mission item
edit contro
l
/// Mission item
map visua
l
Item
{
id
:
_root
property
var
map
///< Map control to place item in
signal
clicked
(
int
sequenceNumber
)
property
var
_visualItem
Component.onCompleted
:
{
...
...
@@ -32,6 +34,7 @@ Item {
console
.
log
(
"
Error loading Qml:
"
,
object
.
mapVisualQML
,
component
.
errorString
())
}
_visualItem
=
component
.
createObject
(
map
,
{
"
map
"
:
_root
.
map
})
_visualItem
.
clicked
.
connect
(
_root
.
clicked
)
}
}
...
...
src/MissionEditor/MissionSettingsMapVisual.qml
View file @
0a23e490
...
...
@@ -20,8 +20,12 @@ import QGroundControl.FlightMap 1.0
/// Mission Settings map visuals
Item
{
id
:
_root
property
var
map
///< Map control to place item in
signal
clicked
(
int
sequenceNumber
)
property
var
_missionItem
:
object
property
var
_itemVisual
property
var
_dragArea
...
...
@@ -103,7 +107,7 @@ Item {
z
:
QGroundControl
.
zOrderMapItems
missionItem
:
_missionItem
onClicked
:
setCurrentItem
(
_missionItem
.
sequenceNumber
)
onClicked
:
_root
.
clicked
(
_missionItem
.
sequenceNumber
)
// These are the non-coordinate child mission items attached to this item
Row
{
...
...
@@ -119,7 +123,7 @@ Item {
z
:
2
specifiesCoordinate
:
false
onClicked
:
setCurrentItem
(
object
.
sequenceNumber
)
onClicked
:
_root
.
Clicked
(
object
.
sequenceNumber
)
}
}
}
...
...
src/MissionEditor/SimpleItemMapVisual.qml
View file @
0a23e490
...
...
@@ -20,6 +20,7 @@ import QGroundControl.FlightMap 1.0
/// Simple Mission Item visuals
Item
{
id
:
_root
property
var
map
///< Map control to place item in
property
var
_missionItem
:
object
...
...
@@ -28,6 +29,8 @@ Item {
property
bool
_itemVisualShowing
:
false
property
bool
_dragAreaShowing
:
false
signal
clicked
(
int
sequenceNumber
)
function
hideItemVisuals
()
{
if
(
_itemVisualShowing
)
{
_itemVisual
.
destroy
()
...
...
@@ -104,7 +107,7 @@ Item {
missionItem
:
_missionItem
sequenceNumber
:
_missionItem
.
sequenceNumber
onClicked
:
setCurrentItem
(
_missionItem
.
sequenceNumber
)
onClicked
:
_root
.
clicked
(
_missionItem
.
sequenceNumber
)
// These are the non-coordinate child mission items attached to this item
Row
{
...
...
@@ -120,7 +123,7 @@ Item {
checked
:
object
.
isCurrentItem
specifiesCoordinate
:
false
onClicked
:
setCurrentItem
(
object
.
sequenceNumber
)
onClicked
:
_root
.
clicked
(
object
.
sequenceNumber
)
}
}
}
...
...
src/MissionEditor/SurveyMapVisual.qml
View file @
0a23e490
...
...
@@ -20,6 +20,8 @@ import QGroundControl.FlightMap 1.0
/// Survey Complex Mission Item visuals
Item
{
id
:
_root
property
var
map
///< Map control to place item in
property
var
_missionItem
:
object
...
...
@@ -30,6 +32,8 @@ Item {
property
var
_dragHandles
property
var
_splitHandles
signal
clicked
(
int
sequenceNumber
)
function
_addVisualElements
()
{
_polygon
=
polygonComponent
.
createObject
(
map
)
_grid
=
gridComponent
.
createObject
(
map
)
...
...
@@ -148,12 +152,10 @@ Item {
coordinate
:
_missionItem
.
coordinate
visible
:
_missionItem
.
exitCoordinate
.
isValid
sourceItem
:
MissionItemIndexLabel
{
sourceItem
:
MissionItemIndexLabel
{
label
:
"
Entry
"
checked
:
_missionItem
.
isCurrentItem
onClicked
:
setCurrentItem
(
_missionItem
.
sequenceNumber
)
onClicked
:
_root
.
clicked
(
_missionItem
.
sequenceNumber
)
}
}
}
...
...
@@ -169,12 +171,10 @@ Item {
coordinate
:
_missionItem
.
exitCoordinate
visible
:
_missionItem
.
exitCoordinate
.
isValid
sourceItem
:
MissionItemIndexLabel
{
sourceItem
:
MissionItemIndexLabel
{
label
:
"
Exit
"
checked
:
_missionItem
.
isCurrentItem
onClicked
:
setCurrentItem
(
_missionItem
.
sequenceNumber
)
onClicked
:
_root
.
clicked
(
_missionItem
.
sequenceNumber
)
}
}
}
...
...
src/MissionManager/MissionController.cc
View file @
0a23e490
...
...
@@ -1279,6 +1279,7 @@ void MissionController::_activeVehicleSet(void)
connect
(
_activeVehicle
,
&
Vehicle
::
homePositionChanged
,
this
,
&
MissionController
::
_activeVehicleHomePositionChanged
);
connect
(
_activeVehicle
,
&
Vehicle
::
defaultCruiseSpeedChanged
,
this
,
&
MissionController
::
_recalcMissionFlightStatus
);
connect
(
_activeVehicle
,
&
Vehicle
::
defaultHoverSpeedChanged
,
this
,
&
MissionController
::
_recalcMissionFlightStatus
);
connect
(
_activeVehicle
,
&
Vehicle
::
vehicleTypeChanged
,
this
,
&
MissionController
::
complexMissionItemNamesChanged
);
if
(
_activeVehicle
->
parameterManager
()
->
parametersReady
()
&&
!
syncInProgress
())
{
// We are switching between two previously existing vehicles. We have to manually ask for the items from the Vehicle.
...
...
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