Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
bdc59c26
Commit
bdc59c26
authored
Feb 06, 2020
by
Valentin Platzgummer
Browse files
time measurement added to calcNextPhase() in WimaController
parent
b08e6619
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
profiling/callgrind/callgrind.SyncWimaFetch
0 → 100644
View file @
bdc59c26
This diff is collapsed.
Click to expand it.
profiling/callgrind/callgrind.SyncWimaPush
0 → 100644
View file @
bdc59c26
This diff is collapsed.
Click to expand it.
src/MissionManager/TransectStyleComplexItem.cc
View file @
bdc59c26
...
...
@@ -358,10 +358,7 @@ void TransectStyleComplexItem::_rebuildTransects(void)
return
;
}
auto
startTime
=
std
::
chrono
::
high_resolution_clock
::
now
();
_rebuildTransectsPhase1
();
auto
delta
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
microseconds
>
(
std
::
chrono
::
high_resolution_clock
::
now
()
-
startTime
).
count
();
qWarning
()
<<
"TransectStyleComplexItem::_rebuildTransects(): time: "
<<
delta
<<
" us"
;
_rebuildTransectsPhase1
();
if
(
_followTerrain
)
{
// Query the terrain data. Once available terrain heights will be calculated
...
...
src/Wima/WimaController.cc
View file @
bdc59c26
...
...
@@ -582,6 +582,7 @@ bool WimaController::fetchContainerData()
bool
WimaController
::
calcNextPhase
()
{
auto
start
=
std
::
chrono
::
high_resolution_clock
::
now
();
if
(
_missionItems
.
count
()
<
1
)
{
_startWaypointIndex
=
0
;
_endWaypointIndex
=
0
;
...
...
@@ -802,6 +803,9 @@ bool WimaController::calcNextPhase()
updateCurrentPath
();
emit
currentMissionItemsChanged
();
qWarning
()
<<
"WimaController::calcNextPhase() exec time: "
<<
std
::
chrono
::
duration_cast
<
std
::
chrono
::
microseconds
>
(
std
::
chrono
::
high_resolution_clock
::
now
()
-
start
).
count
()
<<
" us"
;
return
true
;
}
...
...
src/Wima/WimaPlanData.h
View file @
bdc59c26
...
...
@@ -9,7 +9,7 @@
#include
"WimaJoinedAreaData.h"
#include
"MissionItem.h"
class
WimaPlanData
:
QObject
class
WimaPlanData
:
public
QObject
{
Q_OBJECT
public:
...
...
src/Wima/WimaPlaner.cc
View file @
bdc59c26
...
...
@@ -705,7 +705,7 @@ void WimaPlaner::setInteractive()
QSharedPointer
<
WimaPlanData
>
WimaPlaner
::
toPlanData
()
{
//WimaPlanData *data = new WimaPlanData(nullptr);
QSharedPointer
<
WimaPlanData
>
planData
;
QSharedPointer
<
WimaPlanData
>
planData
(
new
WimaPlanData
())
;
// store areas
planData
->
append
(
WimaMeasurementAreaData
(
_measurementArea
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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