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
0a22457d
Commit
0a22457d
authored
Jul 02, 2017
by
Don Gagne
Committed by
GitHub
Jul 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5378 from DonLakeFlyer/MobileLogging
Mobile telemetry logging
parents
044e3f72
7333034f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
QGCCorePlugin.cc
src/api/QGCCorePlugin.cc
+1
-1
MAVLinkProtocol.cc
src/comm/MAVLinkProtocol.cc
+4
-2
MAVLinkProtocol.h
src/comm/MAVLinkProtocol.h
+1
-1
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+2
-2
No files found.
src/api/QGCCorePlugin.cc
View file @
0a22457d
...
@@ -171,7 +171,7 @@ bool QGCCorePlugin::adjustSettingMetaData(FactMetaData& metaData)
...
@@ -171,7 +171,7 @@ bool QGCCorePlugin::adjustSettingMetaData(FactMetaData& metaData)
}
else
if
(
metaData
.
name
()
==
AppSettings
::
telemetrySaveName
)
{
}
else
if
(
metaData
.
name
()
==
AppSettings
::
telemetrySaveName
)
{
#if defined (__mobile__)
#if defined (__mobile__)
metaData
.
setRawDefaultValue
(
false
);
metaData
.
setRawDefaultValue
(
false
);
return
fals
e
;
return
tru
e
;
#else
#else
metaData
.
setRawDefaultValue
(
true
);
metaData
.
setRawDefaultValue
(
true
);
return
true
;
return
true
;
...
...
src/comm/MAVLinkProtocol.cc
View file @
0a22457d
...
@@ -102,7 +102,8 @@ void MAVLinkProtocol::setToolbox(QGCToolbox *toolbox)
...
@@ -102,7 +102,8 @@ void MAVLinkProtocol::setToolbox(QGCToolbox *toolbox)
connect
(
this
,
&
MAVLinkProtocol
::
saveTelemetryLog
,
_app
,
&
QGCApplication
::
saveTelemetryLogOnMainThread
);
connect
(
this
,
&
MAVLinkProtocol
::
saveTelemetryLog
,
_app
,
&
QGCApplication
::
saveTelemetryLogOnMainThread
);
connect
(
this
,
&
MAVLinkProtocol
::
checkTelemetrySavePath
,
_app
,
&
QGCApplication
::
checkTelemetrySavePathOnMainThread
);
connect
(
this
,
&
MAVLinkProtocol
::
checkTelemetrySavePath
,
_app
,
&
QGCApplication
::
checkTelemetrySavePathOnMainThread
);
connect
(
_multiVehicleManager
->
vehicles
(),
&
QmlObjectListModel
::
countChanged
,
this
,
&
MAVLinkProtocol
::
_vehicleCountChanged
);
connect
(
_multiVehicleManager
,
&
MultiVehicleManager
::
vehicleAdded
,
this
,
&
MAVLinkProtocol
::
_vehicleCountChanged
);
connect
(
_multiVehicleManager
,
&
MultiVehicleManager
::
vehicleRemoved
,
this
,
&
MAVLinkProtocol
::
_vehicleCountChanged
);
emit
versionCheckChanged
(
m_enable_version_check
);
emit
versionCheckChanged
(
m_enable_version_check
);
}
}
...
@@ -327,8 +328,9 @@ void MAVLinkProtocol::enableVersionCheck(bool enabled)
...
@@ -327,8 +328,9 @@ void MAVLinkProtocol::enableVersionCheck(bool enabled)
emit
versionCheckChanged
(
enabled
);
emit
versionCheckChanged
(
enabled
);
}
}
void
MAVLinkProtocol
::
_vehicleCountChanged
(
int
count
)
void
MAVLinkProtocol
::
_vehicleCountChanged
(
void
)
{
{
int
count
=
_multiVehicleManager
->
vehicles
()
->
count
();
if
(
count
==
0
)
{
if
(
count
==
0
)
{
// Last vehicle is gone, close out logging
// Last vehicle is gone, close out logging
_stopLogging
();
_stopLogging
();
...
...
src/comm/MAVLinkProtocol.h
View file @
0a22457d
...
@@ -163,7 +163,7 @@ signals:
...
@@ -163,7 +163,7 @@ signals:
void
checkTelemetrySavePath
(
void
);
void
checkTelemetrySavePath
(
void
);
private
slots
:
private
slots
:
void
_vehicleCountChanged
(
int
count
);
void
_vehicleCountChanged
(
void
);
private:
private:
bool
_closeLogFile
(
void
);
bool
_closeLogFile
(
void
);
...
...
src/ui/preferences/GeneralSettings.qml
View file @
0a22457d
...
@@ -253,7 +253,7 @@ QGCView {
...
@@ -253,7 +253,7 @@ QGCView {
id
:
promptSaveLog
id
:
promptSaveLog
text
:
qsTr
(
"
Save telemetry log after each flight
"
)
text
:
qsTr
(
"
Save telemetry log after each flight
"
)
fact
:
_telemetrySave
fact
:
_telemetrySave
visible
:
!
ScreenTools
.
isMobile
&&
_telemetrySave
.
visible
visible
:
_telemetrySave
.
visible
property
Fact
_telemetrySave
:
QGroundControl
.
settingsManager
.
appSettings
.
telemetrySave
property
Fact
_telemetrySave
:
QGroundControl
.
settingsManager
.
appSettings
.
telemetrySave
}
}
//-----------------------------------------------------------------
//-----------------------------------------------------------------
...
@@ -261,7 +261,7 @@ QGCView {
...
@@ -261,7 +261,7 @@ QGCView {
FactCheckBox
{
FactCheckBox
{
text
:
qsTr
(
"
Save telemetry log even if vehicle was not armed
"
)
text
:
qsTr
(
"
Save telemetry log even if vehicle was not armed
"
)
fact
:
_telemetrySaveNotArmed
fact
:
_telemetrySaveNotArmed
visible
:
!
ScreenTools
.
isMobile
&&
_telemetrySaveNotArmed
.
visible
visible
:
_telemetrySaveNotArmed
.
visible
enabled
:
promptSaveLog
.
checked
enabled
:
promptSaveLog
.
checked
property
Fact
_telemetrySaveNotArmed
:
QGroundControl
.
settingsManager
.
appSettings
.
telemetrySaveNotArmed
property
Fact
_telemetrySaveNotArmed
:
QGroundControl
.
settingsManager
.
appSettings
.
telemetrySaveNotArmed
}
}
...
...
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