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
a0ab8f79
Commit
a0ab8f79
authored
Oct 17, 2020
by
Valentin Platzgummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mimor changes
parent
6d21e26c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
20 deletions
+9
-20
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+0
-1
WimaPlaner.cc
src/Wima/WimaPlaner.cc
+4
-0
WimaPlaner.h
src/Wima/WimaPlaner.h
+3
-0
WimaView.qml
src/WimaView/WimaView.qml
+2
-19
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
a0ab8f79
...
...
@@ -223,7 +223,6 @@ FlightMap {
coordList
.
push
(
vertex
)
}
}
console
.
log
(
coordList
)
fitMapViewportToAllCoordinates
(
coordList
)
}
}
...
...
src/Wima/WimaPlaner.cc
View file @
a0ab8f79
...
...
@@ -69,6 +69,8 @@ WimaPlaner::WimaPlaner(QObject *parent)
&
WimaPlaner
::
needsUpdateChanged
);
connect
(
this
->
_stateMachine
.
get
(),
&
StateMachine
::
surveyReadyChanged
,
this
,
&
WimaPlaner
::
readyForSynchronizationChanged
);
connect
(
this
->
_stateMachine
.
get
(),
&
StateMachine
::
surveyReadyChanged
,
this
,
&
WimaPlaner
::
surveyReadyChanged
);
}
WimaPlaner
::~
WimaPlaner
()
{}
...
...
@@ -158,6 +160,8 @@ bool WimaPlaner::readyForSynchronization() {
return
this
->
_stateMachine
->
surveyReady
();
}
bool
WimaPlaner
::
surveyReady
()
{
return
this
->
_stateMachine
->
surveyReady
();
}
bool
WimaPlaner
::
progressLocked
()
{
return
this
->
_progressLocked
;
}
void
WimaPlaner
::
removeArea
(
int
index
)
{
...
...
src/Wima/WimaPlaner.h
View file @
a0ab8f79
...
...
@@ -55,6 +55,7 @@ public:
Q_PROPERTY
(
bool
needsUpdate
READ
needsUpdate
NOTIFY
needsUpdateChanged
)
Q_PROPERTY
(
bool
readyForSynchronization
READ
readyForSynchronization
NOTIFY
readyForSynchronizationChanged
)
Q_PROPERTY
(
bool
surveyReady
READ
surveyReady
NOTIFY
surveyReadyChanged
)
Q_PROPERTY
(
bool
progressLocked
READ
progressLocked
WRITE
setProgressLocked
NOTIFY
progressLockedChanged
)
...
...
@@ -72,6 +73,7 @@ public:
bool
synchronized
();
bool
needsUpdate
();
bool
readyForSynchronization
();
bool
surveyReady
();
bool
progressLocked
();
// Property setters
...
...
@@ -118,6 +120,7 @@ signals:
void
synchronizedChanged
(
void
);
void
needsUpdateChanged
(
void
);
void
readyForSynchronizationChanged
(
void
);
void
surveyReadyChanged
(
void
);
void
progressLockedChanged
();
private
slots
:
...
...
src/WimaView/WimaView.qml
View file @
a0ab8f79
...
...
@@ -439,7 +439,7 @@ QGCView {
onAcceptedForLoad
:
{
wimaPlaner
.
loadFromFile
(
file
)
editorMap
.
center
=
wimaPlaner
.
joinedAreaCenter
;
mapFitFunctions
.
fitMapViewportToAreas
()
close
()
}
}
...
...
@@ -637,23 +637,6 @@ QGCView {
z
:
QGroundControl
.
zOrderMapItems
-
1
}
}
/*
GeoFenceMapVisuals {
map: editorMap
myGeoFenceController: _geoFenceController
interactive: _editingLayer == _layerGeoFence
homePosition: _missionController.plannedHomePosition
planView: true
}
RallyPointMapVisuals {
map: editorMap
myRallyPointController: _rallyPointController
interactive: _editingLayer == _layerRallyPoints
planView: true
}*/
// Airspace overlap support
MapItemView
{
model
:
_airspaceEnabled
&&
QGroundControl
.
airspaceManager
.
airspaceVisible
?
QGroundControl
.
airspaceManager
.
airspaces
.
circles
:
[]
...
...
@@ -983,7 +966,7 @@ QGCView {
anchors.verticalCenter
:
parent
.
verticalCenter
onCheckedChanged
:{
if
(
!
checked
){
if
(
!
checked
&&
!
wimaPlaner
.
surveyReady
){
wimaPlaner
.
update
()
}
}
...
...
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