Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
6599fde0
Commit
6599fde0
authored
Nov 27, 2017
by
Beat Küng
Browse files
AirMapManager: update flight search according to updated airmapd
parent
18be90f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MissionManager/AirMapManager.cc
View file @
6599fde0
...
...
@@ -337,13 +337,13 @@ void AirMapFlightManager::_endFirstFlight()
if
(
!
isAlive
.
lock
())
return
;
if
(
_state
!=
State
::
EndFirstFlight
)
return
;
if
(
result
&&
result
.
value
().
size
()
>
0
)
{
if
(
result
&&
result
.
value
().
flights
.
size
()
>
0
)
{
Q_ASSERT
(
_shared
.
loginToken
()
!=
""
);
// at this point we know the user is logged in (we queried the pilot id)
Flights
::
EndFlight
::
Parameters
params
;
params
.
authorization
=
_shared
.
loginToken
().
toStdString
();
params
.
id
=
result
.
value
()[
0
].
id
;
// pick the first flight (TODO: match the vehicle id)
params
.
id
=
result
.
value
()
.
flights
[
0
].
id
;
// pick the first flight (TODO: match the vehicle id)
_shared
.
client
()
->
flights
().
end_flight
(
params
,
[
this
,
isAlive
](
const
Flights
::
EndFlight
::
Result
&
result
)
{
if
(
!
isAlive
.
lock
())
return
;
if
(
_state
!=
State
::
EndFirstFlight
)
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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