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
eac9d306
Commit
eac9d306
authored
Sep 12, 2017
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep asking for capture status while camera is not idle.
parent
dfffd3bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
QGCCameraControl.cc
src/Camera/QGCCameraControl.cc
+4
-1
VideoReceiver.cc
src/VideoStreaming/VideoReceiver.cc
+1
-1
No files found.
src/Camera/QGCCameraControl.cc
View file @
eac9d306
...
...
@@ -1100,7 +1100,7 @@ QGCCameraControl::handleCaptureStatus(const mavlink_camera_capture_status_t& cap
_storageFree
=
cap
.
available_capacity
;
emit
storageFreeChanged
();
}
//-- Video Capture Status
//-- Video
/Image
Capture Status
uint8_t
vs
=
cap
.
video_status
<
(
uint8_t
)
VIDEO_CAPTURE_STATUS_LAST
?
cap
.
video_status
:
(
uint8_t
)
VIDEO_CAPTURE_STATUS_UNDEFINED
;
uint8_t
ps
=
cap
.
image_status
<
(
uint8_t
)
PHOTO_CAPTURE_LAST
?
cap
.
image_status
:
(
uint8_t
)
PHOTO_CAPTURE_STATUS_UNDEFINED
;
_setVideoStatus
((
VideoStatus
)
vs
);
...
...
@@ -1108,6 +1108,9 @@ QGCCameraControl::handleCaptureStatus(const mavlink_camera_capture_status_t& cap
//-- Keep asking for it once in a while when recording
if
(
videoStatus
()
==
VIDEO_CAPTURE_STATUS_RUNNING
)
{
_captureStatusTimer
.
start
(
5000
);
//-- Same while image capture is busy
}
else
if
(
photoStatus
()
!=
PHOTO_CAPTURE_IDLE
)
{
_captureStatusTimer
.
start
(
1000
);
}
}
...
...
src/VideoStreaming/VideoReceiver.cc
View file @
eac9d306
...
...
@@ -774,7 +774,7 @@ VideoReceiver::_updateTimer()
if
(
lastFrame
!=
0
)
{
elapsed
=
time
(
0
)
-
_videoSurface
->
lastFrame
();
}
if
(
elapsed
>
timeout
&&
_videoSurface
)
{
if
(
elapsed
>
(
time_t
)
timeout
&&
_videoSurface
)
{
stop
();
}
}
else
{
...
...
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