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
89bd433c
Commit
89bd433c
authored
Mar 27, 2020
by
DoinLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
d5085157
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
24 deletions
+41
-24
ChangeLog.md
ChangeLog.md
+1
-0
LogDownloadController.cc
src/AnalyzeView/LogDownloadController.cc
+1
-11
LogDownloadPage.qml
src/AnalyzeView/LogDownloadPage.qml
+10
-5
MissionItemIndicator.qml
src/FlightMap/MapItems/MissionItemIndicator.qml
+2
-1
MissionItemStatus.qml
src/PlanView/MissionItemStatus.qml
+25
-5
MissionItemIndexLabel.qml
src/QmlControls/MissionItemIndexLabel.qml
+1
-1
Vehicle.cc
src/Vehicle/Vehicle.cc
+1
-1
No files found.
ChangeLog.md
View file @
89bd433c
...
@@ -11,6 +11,7 @@ Note: This file only contains high level features or important fixes.
...
@@ -11,6 +11,7 @@ Note: This file only contains high level features or important fixes.
### 4.0.6 - Not yet released
### 4.0.6 - Not yet released
*
Plan: Much better conversion of missions to KML for 3d visualization/verification of missions
*
Plan: Much better conversion of missions to KML for 3d visualization/verification of missions
*
Analyze/Log Download - Fix download on mobile versions of QGC
### 4.0.5 - Stable
### 4.0.5 - Stable
...
...
src/AnalyzeView/LogDownloadController.cc
View file @
89bd433c
...
@@ -519,19 +519,9 @@ void
...
@@ -519,19 +519,9 @@ void
LogDownloadController
::
download
(
QString
path
)
LogDownloadController
::
download
(
QString
path
)
{
{
QString
dir
=
path
;
QString
dir
=
path
;
#if defined(__mobile__)
if
(
dir
.
isEmpty
())
{
if
(
dir
.
isEmpty
())
{
dir
=
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
logSavePath
();
dir
=
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
logSavePath
();
}
}
#else
if
(
dir
.
isEmpty
())
{
dir
=
QString
();
//-- TODO: QGCQFileDialog::getExistingDirectory(
// MainWindow::instance(),
// tr("Log Download Directory"),
// QDir::homePath(),
// QGCQFileDialog::ShowDirsOnly | QGCQFileDialog::DontResolveSymlinks);
}
#endif
downloadToDirectory
(
dir
);
downloadToDirectory
(
dir
);
}
}
...
...
src/AnalyzeView/LogDownloadPage.qml
View file @
89bd433c
...
@@ -147,11 +147,16 @@ AnalyzePage {
...
@@ -147,11 +147,16 @@ AnalyzePage {
var
o
=
logController
.
model
.
get
(
rowIndex
)
var
o
=
logController
.
model
.
get
(
rowIndex
)
if
(
o
)
o
.
selected
=
true
if
(
o
)
o
.
selected
=
true
})
})
fileDialog
.
title
=
qsTr
(
"
Select save directory
"
)
if
(
ScreenTools
.
isMobile
)
{
fileDialog
.
selectExisting
=
true
// You can't pick folders in mobile, only default location is used
fileDialog
.
folder
=
QGroundControl
.
settingsManager
.
appSettings
.
logSavePath
logController
.
download
()
fileDialog
.
selectFolder
=
true
}
else
{
fileDialog
.
openForLoad
()
fileDialog
.
title
=
qsTr
(
"
Select save directory
"
)
fileDialog
.
selectExisting
=
true
fileDialog
.
folder
=
QGroundControl
.
settingsManager
.
appSettings
.
logSavePath
fileDialog
.
selectFolder
=
true
fileDialog
.
openForLoad
()
}
}
}
QGCFileDialog
{
QGCFileDialog
{
id
:
fileDialog
id
:
fileDialog
...
...
src/FlightMap/MapItems/MissionItemIndicator.qml
View file @
89bd433c
...
@@ -31,7 +31,8 @@ MapQuickItem {
...
@@ -31,7 +31,8 @@ MapQuickItem {
MissionItemIndexLabel
{
MissionItemIndexLabel
{
id
:
_label
id
:
_label
checked
:
_isCurrentItem
checked
:
_isCurrentItem
label
:
missionItem
?
missionItem
.
abbreviation
:
""
label
:
missionItem
.
abbreviation
index
:
missionItem
.
abbreviation
.
charAt
(
0
)
>
'
A
'
&&
missionItem
.
abbreviation
.
charAt
(
0
)
<
'
z
'
?
-
1
:
missionItem
.
sequenceNumber
gimbalYaw
:
missionItem
.
missionGimbalYaw
gimbalYaw
:
missionItem
.
missionGimbalYaw
vehicleYaw
:
missionItem
.
missionVehicleYaw
vehicleYaw
:
missionItem
.
missionVehicleYaw
showGimbalYaw
:
!
isNaN
(
missionItem
.
missionGimbalYaw
)
showGimbalYaw
:
!
isNaN
(
missionItem
.
missionGimbalYaw
)
...
...
src/PlanView/MissionItemStatus.qml
View file @
89bd433c
...
@@ -99,12 +99,32 @@ Rectangle {
...
@@ -99,12 +99,32 @@ Rectangle {
checked
:
object
.
isCurrentItem
checked
:
object
.
isCurrentItem
label
:
object
.
abbreviation
.
charAt
(
0
)
label
:
object
.
abbreviation
.
charAt
(
0
)
index
:
object
.
abbreviation
.
charAt
(
0
)
>
'
A
'
&&
object
.
abbreviation
.
charAt
(
0
)
<
'
z
'
?
-
1
:
object
.
sequenceNumber
index
:
object
.
abbreviation
.
charAt
(
0
)
>
'
A
'
&&
object
.
abbreviation
.
charAt
(
0
)
<
'
z
'
?
-
1
:
object
.
sequenceNumber
showSequenceNumbers
:
true
showSequenceNumbers
:
false
visible
:
true
}
onClicked
:
root
.
setCurrentSeqNum
(
object
.
sequenceNumber
)
Rectangle
{
id
:
indexBackground
anchors.leftMargin
:
-
2
anchors.rightMargin
:
-
2
anchors.fill
:
indexLabel
color
:
qgcPal
.
window
opacity
:
0.3
visible
:
indexLabel
.
visible
transform
:
Rotation
{
angle
:
90
;
origin.x
:
indexBackground
.
width
/
2
;
origin.y
:
indexBackground
.
height
/
2
}
}
QGCLabel
{
id
:
indexLabel
anchors.centerIn
:
parent
text
:
object
.
sequenceNumber
visible
:
indicator
.
index
!=
-
1
transform
:
Rotation
{
angle
:
90
;
origin.x
:
indexLabel
.
width
/
2
;
origin.y
:
indexLabel
.
height
/
2
}
}
MouseArea
{
anchors.fill
:
parent
onClicked
:
root
.
setCurrentSeqNum
(
object
.
sequenceNumber
)
}
}
}
}
}
}
}
}
src/QmlControls/MissionItemIndexLabel.qml
View file @
89bd433c
...
@@ -25,7 +25,7 @@ Canvas {
...
@@ -25,7 +25,7 @@ Canvas {
property
real
gimbalYaw
property
real
gimbalYaw
property
real
vehicleYaw
property
real
vehicleYaw
property
bool
showGimbalYaw
:
false
property
bool
showGimbalYaw
:
false
property
bool
showSequenceNumbers
:
fals
e
property
bool
showSequenceNumbers
:
tru
e
property
real
_width
:
showGimbalYaw
?
Math
.
max
(
_gimbalYawWidth
,
labelControl
.
visible
?
labelControl
.
width
:
indicator
.
width
)
:
(
labelControl
.
visible
?
labelControl
.
width
:
indicator
.
width
)
property
real
_width
:
showGimbalYaw
?
Math
.
max
(
_gimbalYawWidth
,
labelControl
.
visible
?
labelControl
.
width
:
indicator
.
width
)
:
(
labelControl
.
visible
?
labelControl
.
width
:
indicator
.
width
)
property
real
_height
:
showGimbalYaw
?
_gimbalYawWidth
:
(
labelControl
.
visible
?
labelControl
.
height
:
indicator
.
height
)
property
real
_height
:
showGimbalYaw
?
_gimbalYawWidth
:
(
labelControl
.
visible
?
labelControl
.
height
:
indicator
.
height
)
...
...
src/Vehicle/Vehicle.cc
View file @
89bd433c
...
@@ -3287,7 +3287,7 @@ void Vehicle::setCurrentMissionSequence(int seq)
...
@@ -3287,7 +3287,7 @@ void Vehicle::setCurrentMissionSequence(int seq)
&
msg
,
&
msg
,
static_cast
<
uint8_t
>
(
id
()),
static_cast
<
uint8_t
>
(
id
()),
_compID
,
_compID
,
static_cast
<
uint
8
_t
>
(
seq
));
static_cast
<
uint
16
_t
>
(
seq
));
sendMessageOnLink
(
priorityLink
(),
msg
);
sendMessageOnLink
(
priorityLink
(),
msg
);
}
}
...
...
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