Commit 5f8230ab authored by DonLakeFlyer's avatar DonLakeFlyer

parent 32cb174d
...@@ -152,12 +152,11 @@ void VisualMissionItem::setAzimuth(double azimuth) ...@@ -152,12 +152,11 @@ void VisualMissionItem::setAzimuth(double azimuth)
void VisualMissionItem::setMissionFlightStatus(MissionController::MissionFlightStatus_t& missionFlightStatus) void VisualMissionItem::setMissionFlightStatus(MissionController::MissionFlightStatus_t& missionFlightStatus)
{ {
_missionFlightStatus = missionFlightStatus; if (qIsNaN(missionFlightStatus.gimbalYaw) && qIsNaN(_missionGimbalYaw)) {
if (qIsNaN(_missionFlightStatus.gimbalYaw) && qIsNaN(_missionGimbalYaw)) {
return; return;
} }
if (!qFuzzyCompare(_missionFlightStatus.gimbalYaw, _missionGimbalYaw)) { if (!qFuzzyCompare(missionFlightStatus.gimbalYaw, _missionGimbalYaw)) {
_missionGimbalYaw = _missionFlightStatus.gimbalYaw; _missionGimbalYaw = missionFlightStatus.gimbalYaw;
emit missionGimbalYawChanged(_missionGimbalYaw); emit missionGimbalYawChanged(_missionGimbalYaw);
} }
} }
......
...@@ -271,8 +271,6 @@ protected: ...@@ -271,8 +271,6 @@ protected:
VisualMissionItem* _parentItem = nullptr; VisualMissionItem* _parentItem = nullptr;
QGCGeoBoundingCube _boundingCube; ///< The bounding "cube" of this element. QGCGeoBoundingCube _boundingCube; ///< The bounding "cube" of this element.
MissionController::MissionFlightStatus_t _missionFlightStatus;
/// This is used to reference any subsequent mission items which do not specify a coordinate. /// This is used to reference any subsequent mission items which do not specify a coordinate.
QmlObjectListModel _childItems; QmlObjectListModel _childItems;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment