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
477602f5
Commit
477602f5
authored
Aug 19, 2020
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
1b2cdb0a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
QGCCameraControl.cc
src/Camera/QGCCameraControl.cc
+1
-4
VideoManager.cc
src/VideoManager/VideoManager.cc
+6
-1
VideoManager.h
src/VideoManager/VideoManager.h
+1
-1
No files found.
src/Camera/QGCCameraControl.cc
View file @
477602f5
...
...
@@ -387,10 +387,7 @@ QGCCameraControl::takePhoto()
_captureInfoRetries
=
0
;
//-- Capture local image as well
if
(
qgcApp
()
->
toolbox
()
->
videoManager
())
{
QString
photoPath
=
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
savePath
()
->
rawValue
().
toString
()
+
QStringLiteral
(
"/Photo"
);
QDir
().
mkpath
(
photoPath
);
photoPath
+=
+
"/"
+
QDateTime
::
currentDateTime
().
toString
(
"yyyy-MM-dd_hh.mm.ss.zzz"
)
+
".jpg"
;
qgcApp
()
->
toolbox
()
->
videoManager
()
->
grabImage
(
photoPath
);
qgcApp
()
->
toolbox
()
->
videoManager
()
->
grabImage
();
}
return
true
;
}
...
...
src/VideoManager/VideoManager.cc
View file @
477602f5
...
...
@@ -350,7 +350,12 @@ VideoManager::grabImage(const QString& imageFile)
return
;
}
_imageFile
=
imageFile
;
if
(
imageFile
.
isEmpty
())
{
_imageFile
=
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
photoSavePath
();
_imageFile
+=
+
"/"
+
QDateTime
::
currentDateTime
().
toString
(
"yyyy-MM-dd_hh.mm.ss.zzz"
)
+
".jpg"
;
}
else
{
_imageFile
=
imageFile
;
}
emit
imageFileChanged
();
...
...
src/VideoManager/VideoManager.h
View file @
477602f5
...
...
@@ -109,7 +109,7 @@ public:
Q_INVOKABLE
void
startRecording
(
const
QString
&
videoFile
=
QString
());
Q_INVOKABLE
void
stopRecording
();
Q_INVOKABLE
void
grabImage
(
const
QString
&
imageFile
);
Q_INVOKABLE
void
grabImage
(
const
QString
&
imageFile
=
QString
()
);
signals:
void
hasVideoChanged
();
...
...
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