|
|
|
@ -33,8 +33,10 @@ Rectangle {
@@ -33,8 +33,10 @@ Rectangle {
|
|
|
|
|
property real _columnSpacing: ScreenTools.defaultFontPixelHeight * 0.25 |
|
|
|
|
property bool _uploadedSelected: false |
|
|
|
|
property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle |
|
|
|
|
property var _showMavlinkLog: QGroundControl.corePlugin.options.showMavlinkLogOptions |
|
|
|
|
property bool _showMavlinkLog: QGroundControl.corePlugin.options.showMavlinkLogOptions |
|
|
|
|
property bool _showAPMStreamRates: QGroundControl.apmFirmwareSupported && QGroundControl.settingsManager.apmMavlinkStreamRateSettings.visible |
|
|
|
|
property Fact _disableLoggingFact: QGroundControl.settingsManager.appSettings.disableLocalLogging |
|
|
|
|
property bool _disableLogging: _disableLogging ? _disableLogging.rawValue : false |
|
|
|
|
|
|
|
|
|
QGCPalette { id: qgcPal } |
|
|
|
|
|
|
|
|
@ -196,49 +198,49 @@ Rectangle {
@@ -196,49 +198,49 @@ Rectangle {
|
|
|
|
|
|
|
|
|
|
QGCLabel { text: qsTr("Raw Sensors") } |
|
|
|
|
FactComboBox { |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateRawSensors |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings ? QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateRawSensors : null |
|
|
|
|
indexModel: false |
|
|
|
|
Layout.preferredWidth: _valueWidth |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCLabel { text: qsTr("Extended Status") } |
|
|
|
|
FactComboBox { |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateExtendedStatus |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings ? QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateExtendedStatus : null |
|
|
|
|
indexModel: false |
|
|
|
|
Layout.preferredWidth: _valueWidth |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCLabel { text: qsTr("RC Channel") } |
|
|
|
|
FactComboBox { |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateRCChannels |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings ? QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateRCChannels : null |
|
|
|
|
indexModel: false |
|
|
|
|
Layout.preferredWidth: _valueWidth |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCLabel { text: qsTr("Position") } |
|
|
|
|
FactComboBox { |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRatePosition |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings ? QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRatePosition : null |
|
|
|
|
indexModel: false |
|
|
|
|
Layout.preferredWidth: _valueWidth |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCLabel { text: qsTr("Extra 1") } |
|
|
|
|
FactComboBox { |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateExtra1 |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings ? QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateExtra1 : null |
|
|
|
|
indexModel: false |
|
|
|
|
Layout.preferredWidth: _valueWidth |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCLabel { text: qsTr("Extra 2") } |
|
|
|
|
FactComboBox { |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateExtra2 |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings ? QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateExtra2 : null |
|
|
|
|
indexModel: false |
|
|
|
|
Layout.preferredWidth: _valueWidth |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCLabel { text: qsTr("Extra 3") } |
|
|
|
|
FactComboBox { |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateExtra3 |
|
|
|
|
fact: QGroundControl.settingsManager.apmMavlinkStreamRateSettings ? QGroundControl.settingsManager.apmMavlinkStreamRateSettings.streamRateExtra3 : null |
|
|
|
|
indexModel: false |
|
|
|
|
Layout.preferredWidth: _valueWidth |
|
|
|
|
} |
|
|
|
@ -370,14 +372,14 @@ Rectangle {
@@ -370,14 +372,14 @@ Rectangle {
|
|
|
|
|
QGCButton { |
|
|
|
|
text: qsTr("Start Logging") |
|
|
|
|
width: (_valueWidth * 0.5) - (ScreenTools.defaultFontPixelWidth * 0.5) |
|
|
|
|
enabled: !QGroundControl.mavlinkLogManager.logRunning && QGroundControl.mavlinkLogManager.canStartLog |
|
|
|
|
enabled: !QGroundControl.mavlinkLogManager.logRunning && QGroundControl.mavlinkLogManager.canStartLog && !_disableLogging |
|
|
|
|
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 |
|
|
|
|
enabled: QGroundControl.mavlinkLogManager.logRunning && !_disableLogging |
|
|
|
|
onClicked: QGroundControl.mavlinkLogManager.stopLogging() |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
} |
|
|
|
@ -387,6 +389,7 @@ Rectangle {
@@ -387,6 +389,7 @@ Rectangle {
|
|
|
|
|
QGCCheckBox { |
|
|
|
|
text: qsTr("Enable automatic logging") |
|
|
|
|
checked: QGroundControl.mavlinkLogManager.enableAutoStart |
|
|
|
|
enabled: !_disableLogging |
|
|
|
|
onClicked: { |
|
|
|
|
QGroundControl.mavlinkLogManager.enableAutoStart = checked |
|
|
|
|
} |
|
|
|
@ -428,9 +431,10 @@ Rectangle {
@@ -428,9 +431,10 @@ Rectangle {
|
|
|
|
|
text: qsTr("Email address for Log Upload:") |
|
|
|
|
} |
|
|
|
|
QGCTextField { |
|
|
|
|
id: emailField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.emailAddress |
|
|
|
|
width: _valueWidth |
|
|
|
|
id: emailField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.emailAddress |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: !_disableLogging |
|
|
|
|
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhEmailCharactersOnly |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
onEditingFinished: { |
|
|
|
@ -448,9 +452,10 @@ Rectangle {
@@ -448,9 +452,10 @@ Rectangle {
|
|
|
|
|
text: qsTr("Default Description:") |
|
|
|
|
} |
|
|
|
|
QGCTextField { |
|
|
|
|
id: descField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.description |
|
|
|
|
width: _valueWidth |
|
|
|
|
id: descField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.description |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: !_disableLogging |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
onEditingFinished: { |
|
|
|
|
saveItems(); |
|
|
|
@ -467,9 +472,10 @@ Rectangle {
@@ -467,9 +472,10 @@ Rectangle {
|
|
|
|
|
text: qsTr("Default Upload URL") |
|
|
|
|
} |
|
|
|
|
QGCTextField { |
|
|
|
|
id: urlField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.uploadURL |
|
|
|
|
width: _valueWidth |
|
|
|
|
id: urlField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.uploadURL |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: !_disableLogging |
|
|
|
|
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhUrlCharactersOnly |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
onEditingFinished: { |
|
|
|
@ -487,9 +493,10 @@ Rectangle {
@@ -487,9 +493,10 @@ Rectangle {
|
|
|
|
|
text: qsTr("Video URL:") |
|
|
|
|
} |
|
|
|
|
QGCTextField { |
|
|
|
|
id: videoUrlField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.videoURL |
|
|
|
|
width: _valueWidth |
|
|
|
|
id: videoUrlField |
|
|
|
|
text: QGroundControl.mavlinkLogManager.videoURL |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: !_disableLogging |
|
|
|
|
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhUrlCharactersOnly |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
} |
|
|
|
@ -504,8 +511,9 @@ Rectangle {
@@ -504,8 +511,9 @@ Rectangle {
|
|
|
|
|
text: qsTr("Wind Speed:") |
|
|
|
|
} |
|
|
|
|
QGCComboBox { |
|
|
|
|
id: windCombo |
|
|
|
|
width: _valueWidth |
|
|
|
|
id: windCombo |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: !_disableLogging |
|
|
|
|
model: ListModel { |
|
|
|
|
id: windItems |
|
|
|
|
ListElement { text: "Please Select"; value: -1 } |
|
|
|
@ -540,8 +548,9 @@ Rectangle {
@@ -540,8 +548,9 @@ Rectangle {
|
|
|
|
|
text: qsTr("Flight Rating:") |
|
|
|
|
} |
|
|
|
|
QGCComboBox { |
|
|
|
|
id: ratingCombo |
|
|
|
|
width: _valueWidth |
|
|
|
|
id: ratingCombo |
|
|
|
|
width: _valueWidth |
|
|
|
|
enabled: !_disableLogging |
|
|
|
|
model: ListModel { |
|
|
|
|
id: ratingItems |
|
|
|
|
ListElement { text: "Please Select"; value: "notset"} |
|
|
|
@ -582,6 +591,7 @@ Rectangle {
@@ -582,6 +591,7 @@ Rectangle {
|
|
|
|
|
frameVisible: false |
|
|
|
|
font.pointSize: ScreenTools.defaultFontPointSize |
|
|
|
|
text: QGroundControl.mavlinkLogManager.feedback |
|
|
|
|
enabled: !_disableLogging |
|
|
|
|
style: TextAreaStyle { |
|
|
|
|
textColor: qgcPal.windowShade |
|
|
|
|
backgroundColor: qgcPal.text |
|
|
|
@ -593,6 +603,7 @@ Rectangle {
@@ -593,6 +603,7 @@ Rectangle {
|
|
|
|
|
QGCCheckBox { |
|
|
|
|
text: qsTr("Make this log publicly available") |
|
|
|
|
checked: QGroundControl.mavlinkLogManager.publicLog |
|
|
|
|
enabled: !_disableLogging |
|
|
|
|
onClicked: { |
|
|
|
|
QGroundControl.mavlinkLogManager.publicLog = checked |
|
|
|
|
} |
|
|
|
@ -603,6 +614,7 @@ Rectangle {
@@ -603,6 +614,7 @@ Rectangle {
|
|
|
|
|
id: autoUploadCheck |
|
|
|
|
text: qsTr("Enable automatic log uploads") |
|
|
|
|
checked: QGroundControl.mavlinkLogManager.enableAutoUpload |
|
|
|
|
enabled: !_disableLogging |
|
|
|
|
onClicked: { |
|
|
|
|
saveItems(); |
|
|
|
|
if(checked && QGroundControl.mavlinkLogManager.emailAddress === "") |
|
|
|
@ -614,7 +626,7 @@ Rectangle {
@@ -614,7 +626,7 @@ Rectangle {
|
|
|
|
|
QGCCheckBox { |
|
|
|
|
text: qsTr("Delete log file after uploading") |
|
|
|
|
checked: QGroundControl.mavlinkLogManager.deleteAfterUpload |
|
|
|
|
enabled: autoUploadCheck.checked |
|
|
|
|
enabled: autoUploadCheck.checked && !_disableLogging |
|
|
|
|
onClicked: { |
|
|
|
|
QGroundControl.mavlinkLogManager.deleteAfterUpload = checked |
|
|
|
|
} |
|
|
|
|