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
bdb044df
Commit
bdb044df
authored
Mar 03, 2018
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show flight area on map when listing flights
Add message asking user confirmation to end a flight
parent
15b2bde0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
31 deletions
+33
-31
AirMapAdvisoryManager.cc
src/Airmap/AirMapAdvisoryManager.cc
+1
-1
AirMapManager.cc
src/Airmap/AirMapManager.cc
+3
-3
AirMapRestrictionManager.cc
src/Airmap/AirMapRestrictionManager.cc
+1
-1
AirMapRulesetsManager.cc
src/Airmap/AirMapRulesetsManager.cc
+1
-1
AirMapWeatherInfoManager.cc
src/Airmap/AirMapWeatherInfoManager.cc
+1
-1
AirmapSettings.qml
src/Airmap/AirmapSettings.qml
+24
-22
AirspaceFlightPlanProvider.cc
src/AirspaceManagement/AirspaceFlightPlanProvider.cc
+2
-2
No files found.
src/Airmap/AirMapAdvisoryManager.cc
View file @
bdb044df
...
...
@@ -58,7 +58,7 @@ adv_sort(QObject* a, QObject* b)
void
AirMapAdvisoryManager
::
_requestAdvisories
()
{
qCDebug
(
AirMapManagerLog
)
<<
"Advisories Request"
;
qCDebug
(
AirMapManagerLog
)
<<
"Advisories Request
(ROI Changed)
"
;
if
(
!
_shared
.
client
())
{
qCDebug
(
AirMapManagerLog
)
<<
"No AirMap client instance. Not updating Advisories"
;
_valid
=
false
;
...
...
src/Airmap/AirMapManager.cc
View file @
bdb044df
...
...
@@ -37,9 +37,9 @@ AirMapManager::AirMapManager(QGCApplication* app, QGCToolbox* toolbox)
{
_logger
=
std
::
make_shared
<
qt
::
Logger
>
();
qt
::
register_types
();
// TODO: still needed?
_logger
->
logging_category
().
setEnabled
(
QtDebugMsg
,
tru
e
);
_logger
->
logging_category
().
setEnabled
(
QtInfoMsg
,
tru
e
);
_logger
->
logging_category
().
setEnabled
(
QtWarningMsg
,
tru
e
);
_logger
->
logging_category
().
setEnabled
(
QtDebugMsg
,
fals
e
);
_logger
->
logging_category
().
setEnabled
(
QtInfoMsg
,
fals
e
);
_logger
->
logging_category
().
setEnabled
(
QtWarningMsg
,
fals
e
);
_dispatchingLogger
=
std
::
make_shared
<
qt
::
DispatchingLogger
>
(
_logger
);
connect
(
&
_shared
,
&
AirMapSharedState
::
error
,
this
,
&
AirMapManager
::
_error
);
}
...
...
src/Airmap/AirMapRestrictionManager.cc
View file @
bdb044df
...
...
@@ -49,7 +49,7 @@ AirMapRestrictionManager::_requestRestrictions(const QGCGeoBoundingCube& roi)
qCWarning
(
AirMapManagerLog
)
<<
"AirMapRestrictionManager::updateROI: state not idle"
;
return
;
}
qCDebug
(
AirMapManagerLog
)
<<
"
Setting Restriction Manager ROI
"
;
qCDebug
(
AirMapManagerLog
)
<<
"
Restrictions Request (ROI Changed)
"
;
_polygons
.
clear
();
_circles
.
clear
();
_state
=
State
::
RetrieveItems
;
...
...
src/Airmap/AirMapRulesetsManager.cc
View file @
bdb044df
...
...
@@ -199,7 +199,7 @@ void AirMapRulesetsManager::setROI(const QGCGeoBoundingCube& roi)
qCWarning
(
AirMapManagerLog
)
<<
"AirMapRulesetsManager::updateROI: state not idle"
;
return
;
}
qCDebug
(
AirMapManagerLog
)
<<
"
Setting ROI for Rulesets
"
;
qCDebug
(
AirMapManagerLog
)
<<
"
Rulesets Request (ROI Changed)
"
;
_valid
=
false
;
_ruleSets
.
clearAndDeleteContents
();
_state
=
State
::
RetrieveItems
;
...
...
src/Airmap/AirMapWeatherInfoManager.cc
View file @
bdb044df
...
...
@@ -42,7 +42,7 @@ AirMapWeatherInfoManager::setROI(const QGCGeoBoundingCube& roi)
void
AirMapWeatherInfoManager
::
_requestWeatherUpdate
(
const
QGeoCoordinate
&
coordinate
)
{
qCDebug
(
AirMapManagerLog
)
<<
"
Request Weather
"
;
qCDebug
(
AirMapManagerLog
)
<<
"
Weather Request (ROI Changed)
"
;
if
(
!
_shared
.
client
())
{
qCDebug
(
AirMapManagerLog
)
<<
"No AirMap client instance. Not updating Weather information"
;
_valid
=
false
;
...
...
src/Airmap/AirmapSettings.qml
View file @
bdb044df
...
...
@@ -306,14 +306,10 @@ QGCView {
selectionMode
:
SelectionMode
.
SingleSelection
Layout.fillWidth
:
true
onCurrentRowChanged
:
{
map
.
fitViewportToMapItems
()
var
o
=
_flightList
.
get
(
tableView
.
currentRow
)
if
(
o
)
{
console
.
log
(
o
.
boundingBox
.
count
)
console
.
log
(
o
.
boundingBox
)
console
.
log
(
o
.
flightID
)
}
else
{
console
.
log
(
'
No bounding box
'
)
flightArea
.
path
=
o
.
boundingBox
map
.
fitViewportToMapItems
()
}
}
TableViewColumn
{
...
...
@@ -516,9 +512,24 @@ QGCView {
}
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
var
o
=
_flightList
.
get
(
tableView
.
currentRow
)
if
(
o
)
{
QGroundControl
.
airspaceManager
.
flightPlan
.
endFlight
(
o
.
flightID
)
endFlightDialog
.
visible
=
true
}
MessageDialog
{
id
:
endFlightDialog
visible
:
false
icon
:
StandardIcon
.
Warning
standardButtons
:
StandardButton
.
Yes
|
StandardButton
.
No
title
:
qsTr
(
"
End Flight
"
)
text
:
qsTr
(
"
Confirm ending active flight?
"
)
onYes
:
{
var
o
=
_flightList
.
get
(
tableView
.
currentRow
)
if
(
o
)
{
QGroundControl
.
airspaceManager
.
flightPlan
.
endFlight
(
o
.
flightID
)
}
endFlightDialog
.
visible
=
false
}
onNo
:
{
endFlightDialog
.
visible
=
false
}
}
}
...
...
@@ -573,19 +584,10 @@ QGCView {
}
}
}
MapItemView
{
model
:
{
var
o
=
_flightList
.
get
(
tableView
.
currentRow
)
if
(
o
)
{
return
o
.
boundingBox
}
return
[]
}
delegate
:
MapPolygon
{
path
:
object
color
:
Qt
.
rgba
(
1
,
0
,
0
,
0.2
)
border.color
:
Qt
.
rgba
(
1
,
1
,
1
,
0.65
)
}
MapPolygon
{
id
:
flightArea
color
:
Qt
.
rgba
(
1
,
0
,
0
,
0.2
)
border.color
:
Qt
.
rgba
(
1
,
1
,
1
,
0.65
)
}
Component.onCompleted
:
{
updateActiveMapType
()
...
...
src/AirspaceManagement/AirspaceFlightPlanProvider.cc
View file @
bdb044df
...
...
@@ -105,13 +105,13 @@ void
AirspaceFlightModel
::
clear
(
void
)
{
if
(
!
_flightEntries
.
isEmpty
())
{
beginRe
moveRows
(
QModelIndex
(),
0
,
_flightEntries
.
count
()
);
beginRe
setModel
(
);
while
(
_flightEntries
.
count
())
{
AirspaceFlightInfo
*
entry
=
_flightEntries
.
last
();
if
(
entry
)
entry
->
deleteLater
();
_flightEntries
.
removeLast
();
}
endRe
moveRows
();
endRe
setModel
();
emit
countChanged
();
}
}
...
...
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