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
c1dff165
Unverified
Commit
c1dff165
authored
Apr 28, 2020
by
Don Gagne
Committed by
GitHub
Apr 28, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8676 from patrickelectric/more_qtimer_qtime_fixes
Fix more QTime deprecated functions
parents
027488a4
b6945ecf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
11 deletions
+12
-11
QGCCameraControl.cc
src/Camera/QGCCameraControl.cc
+3
-3
QGCCameraManager.h
src/Camera/QGCCameraManager.h
+3
-3
Joystick.h
src/Joystick/Joystick.h
+2
-2
Vehicle.h
src/Vehicle/Vehicle.h
+2
-2
MockLink.h
src/comm/MockLink.h
+2
-1
No files found.
src/Camera/QGCCameraControl.cc
View file @
c1dff165
...
...
@@ -770,7 +770,7 @@ QGCCameraControl::_setVideoStatus(VideoStatus status)
emit
videoStatusChanged
();
if
(
status
==
VIDEO_CAPTURE_STATUS_RUNNING
)
{
_recordTime
=
0
;
_recTime
.
start
();
_recTime
=
QTime
::
currentTime
();
_recTimer
.
start
();
}
else
{
_recTimer
.
stop
();
...
...
@@ -784,7 +784,7 @@ QGCCameraControl::_setVideoStatus(VideoStatus status)
void
QGCCameraControl
::
_recTimerHandler
()
{
_recordTime
=
static_cast
<
uint32_t
>
(
_recTime
.
elapsed
());
_recordTime
=
static_cast
<
uint32_t
>
(
_recTime
.
msec
());
emit
recordTimeChanged
();
}
...
...
@@ -1524,7 +1524,7 @@ QGCCameraControl::handleCaptureStatus(const mavlink_camera_capture_status_t& cap
//-- Do we have recording time?
if
(
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
();
}
//-- Video/Image Capture Status
...
...
src/Camera/QGCCameraManager.h
View file @
c1dff165
...
...
@@ -91,7 +91,7 @@ protected:
class
CameraStruct
:
public
QObject
{
public:
CameraStruct
(
QObject
*
parent
,
uint8_t
compID_
);
Q
Time
lastHeartbeat
;
Q
ElapsedTimer
lastHeartbeat
;
bool
infoReceived
=
false
;
bool
gaveUp
=
false
;
int
tryCount
=
0
;
...
...
@@ -105,8 +105,8 @@ protected:
QmlObjectListModel
_cameras
;
QStringList
_cameraLabels
;
int
_currentCamera
=
0
;
Q
Time
_lastZoomChange
;
Q
Time
_lastCameraChange
;
Q
ElapsedTimer
_lastZoomChange
;
Q
ElapsedTimer
_lastCameraChange
;
QTimer
_cameraTimer
;
QMap
<
QString
,
CameraStruct
*>
_cameraInfoRequest
;
};
src/Joystick/Joystick.h
View file @
c1dff165
...
...
@@ -28,7 +28,7 @@ class AssignedButtonAction : public QObject {
public:
AssignedButtonAction
(
QObject
*
parent
,
const
QString
name
);
QString
action
;
Q
Time
buttonTime
;
Q
ElapsedTimer
buttonTime
;
bool
repeat
=
false
;
};
...
...
@@ -299,7 +299,7 @@ protected:
static
int
_transmitterMode
;
int
_rgFunctionAxis
[
maxFunction
]
=
{};
Q
Time
_axisTime
;
Q
ElapsedTimer
_axisTime
;
QmlObjectListModel
_assignableButtonActions
;
QList
<
AssignedButtonAction
*>
_buttonActionArray
;
...
...
src/Vehicle/Vehicle.h
View file @
c1dff165
...
...
@@ -1441,7 +1441,7 @@ private:
QTimer
_mavCommandAckTimer
;
int
_mavCommandRetryCount
;
int
_capabilitiesRetryCount
=
0
;
Q
Time
_capabilitiesRetryElapsed
;
Q
ElapsedTimer
_capabilitiesRetryElapsed
;
static
const
int
_mavCommandMaxRetryCount
=
3
;
static
const
int
_mavCommandAckTimeoutMSecs
=
3000
;
static
const
int
_mavCommandAckTimeoutMSecsHighLatency
=
120000
;
...
...
@@ -1490,7 +1490,7 @@ private:
QTimer
_sendMultipleTimer
;
int
_nextSendMessageMultipleIndex
;
Q
Time
_flightTimer
;
Q
ElapsedTimer
_flightTimer
;
QTimer
_flightTimeUpdater
;
TrajectoryPoints
*
_trajectoryPoints
;
QmlObjectListModel
_cameraTriggerPoints
;
...
...
src/comm/MockLink.h
View file @
c1dff165
...
...
@@ -10,6 +10,7 @@
#pragma once
#include <QElapsedTimer>
#include <QMap>
#include <QLoggingCategory>
#include <QGeoCoordinate>
...
...
@@ -230,7 +231,7 @@ private:
uint32_t
_mavCustomMode
;
uint8_t
_mavState
;
Q
Time
_runningTime
;
Q
ElapsedTimer
_runningTime
;
int8_t
_batteryRemaining
=
100
;
MAV_AUTOPILOT
_firmwareType
;
...
...
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