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
3dfdeec9
Commit
3dfdeec9
authored
Nov 19, 2020
by
Valentin Platzgummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp
parent
f4eb1bde
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
245 additions
and
279 deletions
+245
-279
qgroundcontrol.pro
qgroundcontrol.pro
+1
-0
MeasurementComplexItem.cc
src/MeasurementComplexItem/MeasurementComplexItem.cc
+218
-262
MeasurementComplexItem.h
src/MeasurementComplexItem/MeasurementComplexItem.h
+24
-15
SnakeTilesLocal.h
src/MeasurementComplexItem/nemo_interface/SnakeTilesLocal.h
+2
-2
No files found.
qgroundcontrol.pro
View file @
3dfdeec9
...
...
@@ -423,6 +423,7 @@ INCLUDEPATH += \
src
/
comm
\
src
/
MeasurementComplexItem
\
src
/
MeasurementComplexItem
/
geometry
\
src
/
MeasurementComplexItem
/
nemo_interface
\
src
/
comm
/
ros_bridge
\
src
/
input
\
src
/
lib
/
qmapcontrol
\
...
...
src/MeasurementComplexItem/MeasurementComplexItem.cc
View file @
3dfdeec9
This diff is collapsed.
Click to expand it.
src/MeasurementComplexItem/MeasurementComplexItem.h
View file @
3dfdeec9
...
...
@@ -24,9 +24,9 @@ class MeasurementComplexItem : public ComplexMissionItem {
using
PtrAreaData
=
AreaData
*
;
using
PtrRoutingData
=
std
::
shared_ptr
<
RoutingData
>
;
using
PtrWorker
=
RoutingThread
*
;
using
Variant
=
Q
List
<
QGeoCoordinate
>
;
using
Variant
=
Q
VariantList
;
enum
class
STATE
{
IDLE
,
ROUTING
,
REVERT_PATH
,
CHANGE_VARIANT
,
EDITING
};
enum
class
STATE
{
IDLE
,
ROUTING
,
EDITING
};
public:
MeasurementComplexItem
(
PlanMasterController
*
masterController
,
bool
flyView
,
...
...
@@ -40,15 +40,17 @@ public:
Q_PROPERTY
(
QStringList
generatorNameList
READ
generatorNameList
NOTIFY
generatorNameListChanged
)
Q_PROPERTY
(
bool
calculating
READ
calculating
NOTIFY
calculatingChanged
)
Q_PROPERTY
(
bool
editing
READ
editing
NOTIFY
editingChanged
)
Q_PROPERTY
(
bool
ready
READ
ready
NOTIFY
readyChanged
)
Q_PROPERTY
(
routing
::
GeneratorBase
*
generator
READ
generator
NOTIFY
generatorChanged
)
Q_PROPERTY
(
int
generatorIndex
READ
generatorIndex
NOTIFY
generatorChanged
)
Q_PROPERTY
(
bool
editing
READ
editing
NOTIFY
editingChanged
)
Q_PROPERTY
(
bool
editing
READ
editing
NOTIFY
editingChanged
)
Q_PROPERTY
(
AreaData
*
areaData
READ
areaData
NOTIFY
areaDataChanged
)
Q_PROPERTY
(
QVariantList
visualTransectPoints
READ
visualTransectPoints
NOTIFY
visualTransectPointsChanged
)
Q_PROPERTY
(
QVariantList
route
READ
route
NOTIFY
routeChanged
)
Q_INVOKABLE
void
rever
tPath
(
void
);
Q_INVOKABLE
void
rever
seRoute
(
void
);
// Overrides from ComplexMissionItem
virtual
QString
patternName
(
void
)
const
override
final
;
...
...
@@ -104,7 +106,7 @@ public:
//!
//! \brief editingStart Starts area data editing.
//!
//! Starts area data editing.
Transects
will not be updated bewteen a call
//! Starts area data editing.
Route
will not be updated bewteen a call
//! sequence of editingStart() and editingStop().
//!
void
editingStart
();
...
...
@@ -112,18 +114,22 @@ public:
//! \brief editingStop Stops area editing.
//!
//! Stops area editing. Will reset area data to the state before
//! editingStart() if it is invalid. Triggers a
transect
update.
//! editingStart() if it is invalid. Triggers a
route
update.
//!
void
editingStop
();
// Property getters
const
AreaData
*
areaData
()
const
;
AreaData
*
areaData
();
QVariantList
route
();
Fact
*
variant
();
Fact
*
altitude
();
QStringList
variantNames
()
const
;
bool
calculating
()
const
;
bool
editing
()
const
;
bool
ready
()
const
;
bool
followTerrain
()
const
;
static
const
char
*
settingsGroup
;
...
...
@@ -133,23 +139,25 @@ public:
static
const
QString
name
;
signals:
void
calculatingChanged
();
void
variantNamesChanged
();
void
generatorNameListChanged
();
void
generatorChanged
();
void
calculatingChanged
();
void
editingChanged
();
void
readyChanged
();
void
areaDataChanged
();
void
routeChanged
();
private
slots
:
// Overrides from TransectStyleComplexItem
void
_update
(
void
);
// Worker functions.
void
_setTransects
(
PtrRoutingData
pRoute
);
void
_storeRoutingData
(
PtrRoutingData
pRoute
);
bool
_updateRoute
();
void
_changeVariant
();
bool
_updateRouteWorker
();
void
_changeVariantWorker
();
void
_reverseWorker
();
void
_reverseRoute
();
private:
bool
_setGenerator
(
PtrGenerator
newG
);
...
...
@@ -157,12 +165,13 @@ private:
void
_setAreaData
(
PtrAreaData
data
);
static
bool
_calculating
(
STATE
state
);
static
bool
_editing
(
STATE
state
);
static
bool
_ready
(
STATE
state
);
// Hirarcical stuff.
PlanMasterController
*
_masterController
;
int
_sequenceNumber
;
bool
_followTerrain
;
SettingsFact
*
_altitude
;
SettingsFact
_altitude
;
// State.
STATE
_state
;
...
...
src/MeasurementComplexItem/nemo_interface/SnakeTilesLocal.h
View file @
3dfdeec9
#pragma once
#include "
RouteMissionItem
/geometry/GenericPolygonArray.h"
#include "
RouteMissionItem
/nemo_interface/SnakeTileLocal.h"
#include "
MeasurementComplexItem/
/geometry/GenericPolygonArray.h"
#include "
MeasurementComplexItem/
/nemo_interface/SnakeTileLocal.h"
#include <vector>
typedef
GenericPolygonArray
<
SnakeTileLocal
,
std
::
vector
>
SnakeTilesLocal
;
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