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
f1aee303
Commit
f1aee303
authored
Oct 26, 2016
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just being really OCD.
parent
c3f0a51f
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
127 additions
and
127 deletions
+127
-127
qgroundcontrol.pro
qgroundcontrol.pro
+2
-2
QGCToolbox.cc
src/QGCToolbox.cc
+2
-2
QGCToolbox.h
src/QGCToolbox.h
+3
-3
QGroundControlQmlGlobal.h
src/QmlControls/QGroundControlQmlGlobal.h
+3
-3
MAVLinkLogManager.cc
src/Vehicle/MAVLinkLogManager.cc
+96
-96
MAVLinkLogManager.h
src/Vehicle/MAVLinkLogManager.h
+20
-20
MavlinkSettings.qml
src/ui/preferences/MavlinkSettings.qml
+1
-1
No files found.
qgroundcontrol.pro
View file @
f1aee303
...
@@ -334,7 +334,7 @@ HEADERS += \
...
@@ -334,7 +334,7 @@ HEADERS += \
src/uas/UAS.h \
src/uas/UAS.h \
src/uas/UASInterface.h \
src/uas/UASInterface.h \
src/uas/UASMessageHandler.h \
src/uas/UASMessageHandler.h \
src/Vehicle/M
avl
inkLogManager.h \
src/Vehicle/M
AVL
inkLogManager.h \
src/ui/toolbar/MainToolBarController.h \
src/ui/toolbar/MainToolBarController.h \
src/AutoPilotPlugins/PX4/PX4AirframeLoader.h \
src/AutoPilotPlugins/PX4/PX4AirframeLoader.h \
src/AutoPilotPlugins/APM/APMAirframeLoader.h \
src/AutoPilotPlugins/APM/APMAirframeLoader.h \
...
@@ -499,7 +499,7 @@ SOURCES += \
...
@@ -499,7 +499,7 @@ SOURCES += \
src/QmlControls/QmlObjectListModel.cc \
src/QmlControls/QmlObjectListModel.cc \
src/uas/UAS.cc \
src/uas/UAS.cc \
src/uas/UASMessageHandler.cc \
src/uas/UASMessageHandler.cc \
src/Vehicle/M
avl
inkLogManager.cc \
src/Vehicle/M
AVL
inkLogManager.cc \
src/ui/toolbar/MainToolBarController.cc \
src/ui/toolbar/MainToolBarController.cc \
src/AutoPilotPlugins/PX4/PX4AirframeLoader.cc \
src/AutoPilotPlugins/PX4/PX4AirframeLoader.cc \
src/AutoPilotPlugins/APM/APMAirframeLoader.cc \
src/AutoPilotPlugins/APM/APMAirframeLoader.cc \
...
...
src/QGCToolbox.cc
View file @
f1aee303
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include "FollowMe.h"
#include "FollowMe.h"
#include "PositionManager.h"
#include "PositionManager.h"
#include "VideoManager.h"
#include "VideoManager.h"
#include "M
avl
inkLogManager.h"
#include "M
AVL
inkLogManager.h"
QGCToolbox
::
QGCToolbox
(
QGCApplication
*
app
)
QGCToolbox
::
QGCToolbox
(
QGCApplication
*
app
)
:
_audioOutput
(
NULL
)
:
_audioOutput
(
NULL
)
...
@@ -73,7 +73,7 @@ QGCToolbox::QGCToolbox(QGCApplication* app)
...
@@ -73,7 +73,7 @@ QGCToolbox::QGCToolbox(QGCApplication* app)
_qgcPositionManager
=
new
QGCPositionManager
(
app
);
_qgcPositionManager
=
new
QGCPositionManager
(
app
);
_followMe
=
new
FollowMe
(
app
);
_followMe
=
new
FollowMe
(
app
);
_videoManager
=
new
VideoManager
(
app
);
_videoManager
=
new
VideoManager
(
app
);
_mavlinkLogManager
=
new
M
avl
inkLogManager
(
app
);
_mavlinkLogManager
=
new
M
AVL
inkLogManager
(
app
);
}
}
void
QGCToolbox
::
setChildToolboxes
(
void
)
void
QGCToolbox
::
setChildToolboxes
(
void
)
...
...
src/QGCToolbox.h
View file @
f1aee303
...
@@ -32,7 +32,7 @@ class QGCImageProvider;
...
@@ -32,7 +32,7 @@ class QGCImageProvider;
class
UASMessageHandler
;
class
UASMessageHandler
;
class
QGCPositionManager
;
class
QGCPositionManager
;
class
VideoManager
;
class
VideoManager
;
class
M
avl
inkLogManager
;
class
M
AVL
inkLogManager
;
/// This is used to manage all of our top level services/tools
/// This is used to manage all of our top level services/tools
class
QGCToolbox
{
class
QGCToolbox
{
...
@@ -57,7 +57,7 @@ public:
...
@@ -57,7 +57,7 @@ public:
FollowMe
*
followMe
(
void
)
{
return
_followMe
;
}
FollowMe
*
followMe
(
void
)
{
return
_followMe
;
}
QGCPositionManager
*
qgcPositionManager
(
void
)
{
return
_qgcPositionManager
;
}
QGCPositionManager
*
qgcPositionManager
(
void
)
{
return
_qgcPositionManager
;
}
VideoManager
*
videoManager
(
void
)
{
return
_videoManager
;
}
VideoManager
*
videoManager
(
void
)
{
return
_videoManager
;
}
M
avl
inkLogManager
*
mavlinkLogManager
(
void
)
{
return
_mavlinkLogManager
;
}
M
AVL
inkLogManager
*
mavlinkLogManager
(
void
)
{
return
_mavlinkLogManager
;
}
#ifndef __mobile__
#ifndef __mobile__
GPSManager
*
gpsManager
(
void
)
{
return
_gpsManager
;
}
GPSManager
*
gpsManager
(
void
)
{
return
_gpsManager
;
}
...
@@ -86,7 +86,7 @@ private:
...
@@ -86,7 +86,7 @@ private:
FollowMe
*
_followMe
;
FollowMe
*
_followMe
;
QGCPositionManager
*
_qgcPositionManager
;
QGCPositionManager
*
_qgcPositionManager
;
VideoManager
*
_videoManager
;
VideoManager
*
_videoManager
;
M
avl
inkLogManager
*
_mavlinkLogManager
;
M
AVL
inkLogManager
*
_mavlinkLogManager
;
friend
class
QGCApplication
;
friend
class
QGCApplication
;
};
};
...
...
src/QmlControls/QGroundControlQmlGlobal.h
View file @
f1aee303
...
@@ -72,7 +72,7 @@ public:
...
@@ -72,7 +72,7 @@ public:
Q_PROPERTY
(
QGCPositionManager
*
qgcPositionManger
READ
qgcPositionManger
CONSTANT
)
Q_PROPERTY
(
QGCPositionManager
*
qgcPositionManger
READ
qgcPositionManger
CONSTANT
)
Q_PROPERTY
(
MissionCommandTree
*
missionCommandTree
READ
missionCommandTree
CONSTANT
)
Q_PROPERTY
(
MissionCommandTree
*
missionCommandTree
READ
missionCommandTree
CONSTANT
)
Q_PROPERTY
(
VideoManager
*
videoManager
READ
videoManager
CONSTANT
)
Q_PROPERTY
(
VideoManager
*
videoManager
READ
videoManager
CONSTANT
)
Q_PROPERTY
(
M
avl
inkLogManager
*
mavlinkLogManager
READ
mavlinkLogManager
CONSTANT
)
Q_PROPERTY
(
M
AVL
inkLogManager
*
mavlinkLogManager
READ
mavlinkLogManager
CONSTANT
)
Q_PROPERTY
(
qreal
zOrderTopMost
READ
zOrderTopMost
CONSTANT
)
///< z order for top most items, toolbar, main window sub view
Q_PROPERTY
(
qreal
zOrderTopMost
READ
zOrderTopMost
CONSTANT
)
///< z order for top most items, toolbar, main window sub view
Q_PROPERTY
(
qreal
zOrderWidgets
READ
zOrderWidgets
CONSTANT
)
///< z order value to widgets, for example: zoom controls, hud widgetss
Q_PROPERTY
(
qreal
zOrderWidgets
READ
zOrderWidgets
CONSTANT
)
///< z order value to widgets, for example: zoom controls, hud widgetss
...
@@ -167,7 +167,7 @@ public:
...
@@ -167,7 +167,7 @@ public:
QGCPositionManager
*
qgcPositionManger
()
{
return
_qgcPositionManager
;
}
QGCPositionManager
*
qgcPositionManger
()
{
return
_qgcPositionManager
;
}
MissionCommandTree
*
missionCommandTree
()
{
return
_missionCommandTree
;
}
MissionCommandTree
*
missionCommandTree
()
{
return
_missionCommandTree
;
}
VideoManager
*
videoManager
()
{
return
_videoManager
;
}
VideoManager
*
videoManager
()
{
return
_videoManager
;
}
M
avl
inkLogManager
*
mavlinkLogManager
()
{
return
_mavlinkLogManager
;
}
M
AVL
inkLogManager
*
mavlinkLogManager
()
{
return
_mavlinkLogManager
;
}
qreal
zOrderTopMost
()
{
return
1000
;
}
qreal
zOrderTopMost
()
{
return
1000
;
}
qreal
zOrderWidgets
()
{
return
100
;
}
qreal
zOrderWidgets
()
{
return
100
;
}
...
@@ -239,7 +239,7 @@ private:
...
@@ -239,7 +239,7 @@ private:
QGCPositionManager
*
_qgcPositionManager
;
QGCPositionManager
*
_qgcPositionManager
;
MissionCommandTree
*
_missionCommandTree
;
MissionCommandTree
*
_missionCommandTree
;
VideoManager
*
_videoManager
;
VideoManager
*
_videoManager
;
M
avl
inkLogManager
*
_mavlinkLogManager
;
M
AVL
inkLogManager
*
_mavlinkLogManager
;
bool
_virtualTabletJoystick
;
bool
_virtualTabletJoystick
;
qreal
_baseFontPointSize
;
qreal
_baseFontPointSize
;
...
...
src/Vehicle/M
avl
inkLogManager.cc
→
src/Vehicle/M
AVL
inkLogManager.cc
View file @
f1aee303
This diff is collapsed.
Click to expand it.
src/Vehicle/M
avl
inkLogManager.h
→
src/Vehicle/M
AVL
inkLogManager.h
View file @
f1aee303
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
****************************************************************************/
****************************************************************************/
#ifndef M
avl
inkLogManager_H
#ifndef M
AVL
inkLogManager_H
#define M
avl
inkLogManager_H
#define M
AVL
inkLogManager_H
#include <QObject>
#include <QObject>
...
@@ -18,17 +18,17 @@
...
@@ -18,17 +18,17 @@
#include "QGCToolbox.h"
#include "QGCToolbox.h"
#include "Vehicle.h"
#include "Vehicle.h"
Q_DECLARE_LOGGING_CATEGORY
(
M
avl
inkLogManagerLog
)
Q_DECLARE_LOGGING_CATEGORY
(
M
AVL
inkLogManagerLog
)
class
QNetworkAccessManager
;
class
QNetworkAccessManager
;
class
M
avl
inkLogManager
;
class
M
AVL
inkLogManager
;
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
class
M
avl
inkLogFiles
:
public
QObject
class
M
AVL
inkLogFiles
:
public
QObject
{
{
Q_OBJECT
Q_OBJECT
public:
public:
M
avlinkLogFiles
(
Mavl
inkLogManager
*
manager
,
const
QString
&
filePath
,
bool
newFile
=
false
);
M
AVLinkLogFiles
(
MAVL
inkLogManager
*
manager
,
const
QString
&
filePath
,
bool
newFile
=
false
);
Q_PROPERTY
(
QString
name
READ
name
CONSTANT
)
Q_PROPERTY
(
QString
name
READ
name
CONSTANT
)
Q_PROPERTY
(
quint32
size
READ
size
NOTIFY
sizeChanged
)
Q_PROPERTY
(
quint32
size
READ
size
NOTIFY
sizeChanged
)
...
@@ -62,7 +62,7 @@ signals:
...
@@ -62,7 +62,7 @@ signals:
void
uploadedChanged
();
void
uploadedChanged
();
private:
private:
M
avl
inkLogManager
*
_manager
;
M
AVL
inkLogManager
*
_manager
;
QString
_name
;
QString
_name
;
quint32
_size
;
quint32
_size
;
bool
_selected
;
bool
_selected
;
...
@@ -73,15 +73,15 @@ private:
...
@@ -73,15 +73,15 @@ private:
};
};
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
class
M
avl
inkLogProcessor
class
M
AVL
inkLogProcessor
{
{
public:
public:
M
avl
inkLogProcessor
();
M
AVL
inkLogProcessor
();
~
M
avl
inkLogProcessor
();
~
M
AVL
inkLogProcessor
();
void
close
();
void
close
();
bool
valid
();
bool
valid
();
bool
create
(
M
avl
inkLogManager
*
manager
,
const
QString
path
,
uint8_t
id
);
bool
create
(
M
AVL
inkLogManager
*
manager
,
const
QString
path
,
uint8_t
id
);
M
avl
inkLogFiles
*
record
()
{
return
_record
;
}
M
AVL
inkLogFiles
*
record
()
{
return
_record
;
}
QString
fileName
()
{
return
_fileName
;
}
QString
fileName
()
{
return
_fileName
;
}
bool
processStreamData
(
uint16_t
_sequence
,
uint8_t
first_message
,
QByteArray
data
);
bool
processStreamData
(
uint16_t
_sequence
,
uint8_t
first_message
,
QByteArray
data
);
private:
private:
...
@@ -97,17 +97,17 @@ private:
...
@@ -97,17 +97,17 @@ private:
bool
_error
;
bool
_error
;
QByteArray
_ulogMessage
;
QByteArray
_ulogMessage
;
QString
_fileName
;
QString
_fileName
;
M
avl
inkLogFiles
*
_record
;
M
AVL
inkLogFiles
*
_record
;
};
};
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
class
M
avl
inkLogManager
:
public
QGCTool
class
M
AVL
inkLogManager
:
public
QGCTool
{
{
Q_OBJECT
Q_OBJECT
public:
public:
M
avl
inkLogManager
(
QGCApplication
*
app
);
M
AVL
inkLogManager
(
QGCApplication
*
app
);
~
M
avl
inkLogManager
();
~
M
AVL
inkLogManager
();
Q_PROPERTY
(
QString
emailAddress
READ
emailAddress
WRITE
setEmailAddress
NOTIFY
emailAddressChanged
)
Q_PROPERTY
(
QString
emailAddress
READ
emailAddress
WRITE
setEmailAddress
NOTIFY
emailAddressChanged
)
Q_PROPERTY
(
QString
description
READ
description
WRITE
setDescription
NOTIFY
descriptionChanged
)
Q_PROPERTY
(
QString
description
READ
description
WRITE
setDescription
NOTIFY
descriptionChanged
)
...
@@ -180,8 +180,8 @@ private:
...
@@ -180,8 +180,8 @@ private:
bool
_processUploadResponse
(
int
http_code
,
QByteArray
&
data
);
bool
_processUploadResponse
(
int
http_code
,
QByteArray
&
data
);
bool
_createNewLog
();
bool
_createNewLog
();
int
_getFirstSelected
();
int
_getFirstSelected
();
void
_insertNewLog
(
M
avl
inkLogFiles
*
newLog
);
void
_insertNewLog
(
M
AVL
inkLogFiles
*
newLog
);
void
_deleteLog
(
M
avl
inkLogFiles
*
log
);
void
_deleteLog
(
M
AVL
inkLogFiles
*
log
);
void
_discardLog
();
void
_discardLog
();
QString
_makeFilename
(
const
QString
&
baseName
);
QString
_makeFilename
(
const
QString
&
baseName
);
...
@@ -194,11 +194,11 @@ private:
...
@@ -194,11 +194,11 @@ private:
bool
_enableAutoStart
;
bool
_enableAutoStart
;
QNetworkAccessManager
*
_nam
;
QNetworkAccessManager
*
_nam
;
QmlObjectListModel
_logFiles
;
QmlObjectListModel
_logFiles
;
M
avl
inkLogFiles
*
_currentLogfile
;
M
AVL
inkLogFiles
*
_currentLogfile
;
Vehicle
*
_vehicle
;
Vehicle
*
_vehicle
;
bool
_logRunning
;
bool
_logRunning
;
bool
_loggingDisabled
;
bool
_loggingDisabled
;
M
avl
inkLogProcessor
*
_logProcessor
;
M
AVL
inkLogProcessor
*
_logProcessor
;
bool
_deleteAfterUpload
;
bool
_deleteAfterUpload
;
int
_loggingCmdTryCount
;
int
_loggingCmdTryCount
;
QTimer
_ackTimer
;
QTimer
_ackTimer
;
...
...
src/ui/preferences/MavlinkSettings.qml
View file @
f1aee303
...
@@ -144,7 +144,7 @@ Rectangle {
...
@@ -144,7 +144,7 @@ Rectangle {
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
QGCLabel
{
QGCLabel
{
id
:
mavlogLabel
id
:
mavlogLabel
text
:
qsTr
(
"
Vehicle M
avl
ink Logging
"
)
text
:
qsTr
(
"
Vehicle M
AVL
ink Logging
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
font.family
:
ScreenTools
.
demiboldFontFamily
}
}
}
}
...
...
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