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
141239cc
Unverified
Commit
141239cc
authored
Jun 26, 2018
by
Don Gagne
Committed by
GitHub
Jun 26, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6659 from DonLakeFlyer/PlanToolOrbitFix
Fix broken Plan tools, fix broken orbit location
parents
3a839770
3d929513
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
15 deletions
+6
-15
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+1
-1
PlanView.qml
src/PlanView/PlanView.qml
+3
-3
Vehicle.cc
src/Vehicle/Vehicle.cc
+2
-11
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
141239cc
...
...
@@ -369,7 +369,7 @@ FlightMap {
clickMenu
.
coord
=
clickCoord
clickMenu
.
popup
()
}
else
if
(
guidedActionsController
.
showGotoLocation
)
{
_guidedLocationCoordinate
=
clickCoord
gotoLocationItem
.
show
(
clickCoord
)
guidedActionsController
.
confirmAction
(
guidedActionsController
.
actionGoto
,
clickCoord
)
}
else
if
(
guidedActionsController
.
showOrbit
)
{
orbitMapCircle
.
show
(
clickCoord
)
...
...
src/PlanView/PlanView.qml
View file @
141239cc
...
...
@@ -572,15 +572,15 @@ QGCView {
onClicked
:
{
switch
(
index
)
{
case
0
:
case
1
:
_addWaypointOnClick
=
checked
_addROIOnClick
=
false
break
case
1
:
case
2
:
_addROIOnClick
=
checked
_addWaypointOnClick
=
false
break
case
2
:
case
3
:
if
(
_singleComplexItem
)
{
addComplexItem
(
_missionController
.
complexMissionItemNames
[
0
])
}
...
...
src/Vehicle/Vehicle.cc
View file @
141239cc
...
...
@@ -2780,15 +2780,6 @@ void Vehicle::guidedModeOrbit(const QGeoCoordinate& centerCoord, double radius,
return
;
}
double
lat
,
lon
,
alt
;
if
(
centerCoord
.
isValid
())
{
lat
=
lon
=
alt
=
qQNaN
();
}
else
{
lat
=
centerCoord
.
latitude
();
lon
=
centerCoord
.
longitude
();
alt
=
amslAltitude
;
}
if
(
capabilityBits
()
&&
MAV_PROTOCOL_CAPABILITY_COMMAND_INT
)
{
sendMavCommandInt
(
defaultComponentId
(),
MAV_CMD_DO_ORBIT
,
...
...
@@ -2798,7 +2789,7 @@ void Vehicle::guidedModeOrbit(const QGeoCoordinate& centerCoord, double radius,
qQNaN
(),
// Use default velocity
0
,
// Vehicle points to center
qQNaN
(),
// reserved
lat
,
lon
,
alt
);
centerCoord
.
latitude
(),
centerCoord
.
longitude
(),
amslAltitude
);
}
else
{
sendMavCommand
(
defaultComponentId
(),
MAV_CMD_DO_ORBIT
,
...
...
@@ -2807,7 +2798,7 @@ void Vehicle::guidedModeOrbit(const QGeoCoordinate& centerCoord, double radius,
qQNaN
(),
// Use default velocity
0
,
// Vehicle points to center
qQNaN
(),
// reserved
lat
,
lon
,
alt
);
centerCoord
.
latitude
(),
centerCoord
.
longitude
(),
amslAltitude
);
}
}
...
...
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