|
|
@ -770,7 +770,7 @@ QGCCameraControl::_setVideoStatus(VideoStatus status) |
|
|
|
emit videoStatusChanged(); |
|
|
|
emit videoStatusChanged(); |
|
|
|
if(status == VIDEO_CAPTURE_STATUS_RUNNING) { |
|
|
|
if(status == VIDEO_CAPTURE_STATUS_RUNNING) { |
|
|
|
_recordTime = 0; |
|
|
|
_recordTime = 0; |
|
|
|
_recTime.start(); |
|
|
|
_recTime = QTime::currentTime(); |
|
|
|
_recTimer.start(); |
|
|
|
_recTimer.start(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
_recTimer.stop(); |
|
|
|
_recTimer.stop(); |
|
|
@ -784,7 +784,7 @@ QGCCameraControl::_setVideoStatus(VideoStatus status) |
|
|
|
void |
|
|
|
void |
|
|
|
QGCCameraControl::_recTimerHandler() |
|
|
|
QGCCameraControl::_recTimerHandler() |
|
|
|
{ |
|
|
|
{ |
|
|
|
_recordTime = static_cast<uint32_t>(_recTime.elapsed()); |
|
|
|
_recordTime = static_cast<uint32_t>(_recTime.msec()); |
|
|
|
emit recordTimeChanged(); |
|
|
|
emit recordTimeChanged(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1524,7 +1524,7 @@ QGCCameraControl::handleCaptureStatus(const mavlink_camera_capture_status_t& cap |
|
|
|
//-- Do we have recording time?
|
|
|
|
//-- Do we have recording time?
|
|
|
|
if(cap.recording_time_ms) { |
|
|
|
if(cap.recording_time_ms) { |
|
|
|
_recordTime = cap.recording_time_ms; |
|
|
|
_recordTime = cap.recording_time_ms; |
|
|
|
_recTime = _recTime.addMSecs(_recTime.elapsed() - static_cast<int>(cap.recording_time_ms)); |
|
|
|
_recTime = _recTime.addMSecs(_recTime.msec() - static_cast<int>(cap.recording_time_ms)); |
|
|
|
emit recordTimeChanged(); |
|
|
|
emit recordTimeChanged(); |
|
|
|
} |
|
|
|
} |
|
|
|
//-- Video/Image Capture Status
|
|
|
|
//-- Video/Image Capture Status
|
|
|
|