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
8f1b0d04
Unverified
Commit
8f1b0d04
authored
Nov 20, 2019
by
Don Gagne
Committed by
GitHub
Nov 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8059 from DonLakeFlyer/GimbalYaw
Plan: Fix gimbal yaw visual problems
parents
a6c91495
50b46416
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
6 deletions
+19
-6
CameraSection.cc
src/MissionManager/CameraSection.cc
+2
-2
MissionController.cc
src/MissionManager/MissionController.cc
+15
-1
MissionItemTest.cc
src/MissionManager/MissionItemTest.cc
+1
-2
VisualMissionItemTest.cc
src/MissionManager/VisualMissionItemTest.cc
+1
-1
No files found.
src/MissionManager/CameraSection.cc
View file @
8f1b0d04
...
...
@@ -67,8 +67,6 @@ CameraSection::CameraSection(Vehicle* vehicle, QObject* parent)
connect
(
this
,
&
CameraSection
::
specifyGimbalChanged
,
this
,
&
CameraSection
::
_setDirty
);
connect
(
this
,
&
CameraSection
::
specifyCameraModeChanged
,
this
,
&
CameraSection
::
_setDirty
);
connect
(
this
,
&
CameraSection
::
specifyGimbalChanged
,
this
,
&
CameraSection
::
_updateSpecifiedGimbalYaw
);
connect
(
this
,
&
CameraSection
::
specifyGimbalChanged
,
this
,
&
CameraSection
::
_updateSpecifiedGimbalPitch
);
connect
(
&
_gimbalYawFact
,
&
Fact
::
valueChanged
,
this
,
&
CameraSection
::
_updateSpecifiedGimbalYaw
);
connect
(
&
_gimbalPitchFact
,
&
Fact
::
valueChanged
,
this
,
&
CameraSection
::
_updateSpecifiedGimbalPitch
);
}
...
...
@@ -78,6 +76,8 @@ void CameraSection::setSpecifyGimbal(bool specifyGimbal)
if
(
specifyGimbal
!=
_specifyGimbal
)
{
_specifyGimbal
=
specifyGimbal
;
emit
specifyGimbalChanged
(
specifyGimbal
);
emit
specifiedGimbalYawChanged
(
specifiedGimbalYaw
());
emit
specifiedGimbalPitchChanged
(
specifiedGimbalPitch
());
}
}
...
...
src/MissionManager/MissionController.cc
View file @
8f1b0d04
...
...
@@ -1419,7 +1419,21 @@ void MissionController::_recalcMissionFlightStatus()
_missionFlightStatus
.
vehicleSpeed
=
newSpeed
;
}
// Look for gimbal change
// ROI commands cancel out previous gimbal yaw/pitch
if
(
simpleItem
)
{
switch
(
simpleItem
->
command
())
{
case
MAV_CMD_NAV_ROI
:
case
MAV_CMD_DO_SET_ROI_LOCATION
:
case
MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET
:
_missionFlightStatus
.
gimbalYaw
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
_missionFlightStatus
.
gimbalPitch
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
break
;
default:
break
;
}
}
// Look for specific gimbal changes
double
gimbalYaw
=
item
->
specifiedGimbalYaw
();
if
(
!
qIsNaN
(
gimbalYaw
))
{
_missionFlightStatus
.
gimbalYaw
=
gimbalYaw
;
...
...
src/MissionManager/MissionItemTest.cc
View file @
8f1b0d04
...
...
@@ -39,12 +39,11 @@ void MissionItemTest::init(void)
MAV_TYPE_QUADROTOR
,
qgcApp
()
->
toolbox
()
->
firmwarePluginManager
(),
this
);
}
void
MissionItemTest
::
cleanup
(
void
)
{
delete
_offlineVehicle
;
_offlineVehicle
->
deleteLater
()
;
UnitTest
::
cleanup
();
}
...
...
src/MissionManager/VisualMissionItemTest.cc
View file @
8f1b0d04
...
...
@@ -54,7 +54,7 @@ void VisualMissionItemTest::init(void)
void
VisualMissionItemTest
::
cleanup
(
void
)
{
delete
_offlineVehicle
;
_offlineVehicle
->
deleteLater
()
;
UnitTest
::
cleanup
();
}
...
...
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