|
|
|
@ -35,8 +35,8 @@ Rectangle {
@@ -35,8 +35,8 @@ Rectangle {
|
|
|
|
|
property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle |
|
|
|
|
property bool _showMavlinkLog: QGroundControl.corePlugin.options.showMavlinkLogOptions |
|
|
|
|
property bool _showAPMStreamRates: QGroundControl.apmFirmwareSupported && QGroundControl.settingsManager.apmMavlinkStreamRateSettings.visible |
|
|
|
|
property Fact _enableLoggingFact: QGroundControl.settingsManager.appSettings.enableLocalLogging |
|
|
|
|
property bool _enableLogging: _enableLoggingFact ? _enableLoggingFact.rawValue : true |
|
|
|
|
property Fact _disableDataPersistenceFact: QGroundControl.settingsManager.appSettings.disableAllPersistence |
|
|
|
|
property bool _disableDataPersistence: _disableDataPersistenceFact ? _disableDataPersistenceFact.rawValue : false |
|
|
|
|
|
|
|
|
|
QGCPalette { id: qgcPal } |
|
|
|
|
|
|
|
|
@ -372,14 +372,14 @@ Rectangle {
@@ -372,14 +372,14 @@ Rectangle {
|
|
|
|
|
QGCButton { |
|
|
|
|
text: qsTr("Start Logging") |
|
|
|
|
width: (_valueWidth * 0.5) - (ScreenTools.defaultFontPixelWidth * 0.5) |
|
|
|
|
enabled: !QGroundControl.mavlinkLogManager.logRunning && QGroundControl.mavlinkLogManager.canStartLog && _enableLogging |
|
|
|
|
enabled: !QGroundControl.mavlinkLogManager.logRunning && QGroundControl.mavlinkLogManager.canStartLog && !_disableDataPersistence |
|
|
|
|
onClicked: QGroundControl.mavlinkLogManager.startLogging() |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
} |
|
|
|
|
QGCButton { |
|
|
|
|
text: qsTr("Stop Logging") |
|
|
|
|
width: (_valueWidth * 0.5) - (ScreenTools.defaultFontPixelWidth * 0.5) |
|
|
|
|
enabled: QGroundControl.mavlinkLogManager.logRunning && _enableLogging |
|
|
|
|
enabled: QGroundControl.mavlinkLogManager.logRunning && !_disableDataPersistence |
|
|
|
|
onClicked: QGroundControl.mavlinkLogManager.stopLogging() |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
} |
|
|
|
@ -389,7 +389,7 @@ Rectangle {
@@ -389,7 +389,7 @@ Rectangle {
|
|
|
|
|
QGCCheckBox { |
|
|
|
|
text: qsTr("Enable automatic logging") |
|
|
|
|
checked: QGroundControl.mavlinkLogManager.enableAutoStart |
|
|
|
|
enabled: _enableLogging |
|
|
|
|
enabled: !_disableDataPersistence |
|
|
|
|
onClicked: { |
|
|
|
|
QGroundControl.mavlinkLogManager.enableAutoStart = checked |
|
|
|
|
} |
|
|
|
@ -434,7 +434,7 @@ Rectangle {
@@ -434,7 +434,7 @@ Rectangle {
|
|
|
|
|
id: emailField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.emailAddress |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: _enableLogging |
|
|
|
|
enabled: !_disableDataPersistence |
|
|
|
|
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhEmailCharactersOnly |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
onEditingFinished: { |
|
|
|
@ -455,7 +455,7 @@ Rectangle {
@@ -455,7 +455,7 @@ Rectangle {
|
|
|
|
|
id: descField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.description |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: _enableLogging |
|
|
|
|
enabled: !_disableDataPersistence |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
onEditingFinished: { |
|
|
|
|
saveItems(); |
|
|
|
@ -475,7 +475,7 @@ Rectangle {
@@ -475,7 +475,7 @@ Rectangle {
|
|
|
|
|
id: urlField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.uploadURL |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: _enableLogging |
|
|
|
|
enabled: !_disableDataPersistence |
|
|
|
|
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhUrlCharactersOnly |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
onEditingFinished: { |
|
|
|
@ -496,7 +496,7 @@ Rectangle {
@@ -496,7 +496,7 @@ Rectangle {
|
|
|
|
|
id: videoUrlField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.videoURL |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: _enableLogging |
|
|
|
|
enabled: !_disableDataPersistence |
|
|
|
|
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhUrlCharactersOnly |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
} |
|
|
|
@ -513,7 +513,7 @@ Rectangle {
@@ -513,7 +513,7 @@ Rectangle {
|
|
|
|
|
QGCComboBox { |
|
|
|
|
id: windCombo |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: _enableLogging |
|
|
|
|
enabled: !_disableDataPersistence |
|
|
|
|
model: ListModel { |
|
|
|
|
id: windItems |
|
|
|
|
ListElement { text: "Please Select"; value: -1 } |
|
|
|
@ -550,7 +550,7 @@ Rectangle {
@@ -550,7 +550,7 @@ Rectangle {
|
|
|
|
|
QGCComboBox { |
|
|
|
|
id: ratingCombo |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: _enableLogging |
|
|
|
|
enabled: !_disableDataPersistence |
|
|
|
|
model: ListModel { |
|
|
|
|
id: ratingItems |
|
|
|
|
ListElement { text: "Please Select"; value: "notset"} |
|
|
|
@ -591,7 +591,7 @@ Rectangle {
@@ -591,7 +591,7 @@ Rectangle {
|
|
|
|
|
frameVisible: false |
|
|
|
|
font.pointSize: ScreenTools.defaultFontPointSize |
|
|
|
|
text: QGroundControl.mavlinkLogManager.feedback |
|
|
|
|
enabled: _enableLogging |
|
|
|
|
enabled: !_disableDataPersistence |
|
|
|
|
style: TextAreaStyle { |
|
|
|
|
textColor: qgcPal.windowShade |
|
|
|
|
backgroundColor: qgcPal.text |
|
|
|
@ -603,7 +603,7 @@ Rectangle {
@@ -603,7 +603,7 @@ Rectangle {
|
|
|
|
|
QGCCheckBox { |
|
|
|
|
text: qsTr("Make this log publicly available") |
|
|
|
|
checked: QGroundControl.mavlinkLogManager.publicLog |
|
|
|
|
enabled: _enableLogging |
|
|
|
|
enabled: !_disableDataPersistence |
|
|
|
|
onClicked: { |
|
|
|
|
QGroundControl.mavlinkLogManager.publicLog = checked |
|
|
|
|
} |
|
|
|
@ -614,7 +614,7 @@ Rectangle {
@@ -614,7 +614,7 @@ Rectangle {
|
|
|
|
|
id: autoUploadCheck |
|
|
|
|
text: qsTr("Enable automatic log uploads") |
|
|
|
|
checked: QGroundControl.mavlinkLogManager.enableAutoUpload |
|
|
|
|
enabled: _enableLogging |
|
|
|
|
enabled: !_disableDataPersistence |
|
|
|
|
onClicked: { |
|
|
|
|
saveItems(); |
|
|
|
|
if(checked && QGroundControl.mavlinkLogManager.emailAddress === "") |
|
|
|
@ -626,7 +626,7 @@ Rectangle {
@@ -626,7 +626,7 @@ Rectangle {
|
|
|
|
|
QGCCheckBox { |
|
|
|
|
text: qsTr("Delete log file after uploading") |
|
|
|
|
checked: QGroundControl.mavlinkLogManager.deleteAfterUpload |
|
|
|
|
enabled: autoUploadCheck.checked && _enableLogging |
|
|
|
|
enabled: autoUploadCheck.checked && !_disableDataPersistence |
|
|
|
|
onClicked: { |
|
|
|
|
QGroundControl.mavlinkLogManager.deleteAfterUpload = checked |
|
|
|
|
} |
|
|
|
|