diff --git a/src/MissionManager/LandingComplexItem.cc b/src/MissionManager/LandingComplexItem.cc index 732960e..9457922 100644 --- a/src/MissionManager/LandingComplexItem.cc +++ b/src/MissionManager/LandingComplexItem.cc @@ -72,11 +72,11 @@ void LandingComplexItem::_init(void) connect(landingHeading(), &Fact::valueChanged, this, &LandingComplexItem::_recalcFromHeadingAndDistanceChange); connect(loiterRadius(), &Fact::valueChanged, this, &LandingComplexItem::_recalcFromRadiusChange); - connect(this, &LandingComplexItem::loiterClockwiseChanged, this, &LandingComplexItem::_recalcFromRadiusChange); + connect(loiterClockwise(), &Fact::rawValueChanged, this, &LandingComplexItem::_recalcFromRadiusChange); connect(this, &LandingComplexItem::finalApproachCoordinateChanged,this, &LandingComplexItem::_recalcFromCoordinateChange); connect(this, &LandingComplexItem::landingCoordinateChanged, this, &LandingComplexItem::_recalcFromCoordinateChange); - connect(this, &LandingComplexItem::useLoiterToAltChanged, this, &LandingComplexItem::_recalcFromCoordinateChange); + connect(useLoiterToAlt(), &Fact::rawValueChanged, this, &LandingComplexItem::_recalcFromCoordinateChange); connect(finalApproachAltitude(), &Fact::valueChanged, this, &LandingComplexItem::_setDirty); connect(landingAltitude(), &Fact::valueChanged, this, &LandingComplexItem::_setDirty); @@ -89,9 +89,7 @@ void LandingComplexItem::_init(void) connect(stopTakingVideo(), &Fact::valueChanged, this, &LandingComplexItem::_setDirty); connect(this, &LandingComplexItem::finalApproachCoordinateChanged,this, &LandingComplexItem::_setDirty); connect(this, &LandingComplexItem::landingCoordinateChanged, this, &LandingComplexItem::_setDirty); - connect(this, &LandingComplexItem::loiterClockwiseChanged, this, &LandingComplexItem::_setDirty); connect(this, &LandingComplexItem::altitudesAreRelativeChanged, this, &LandingComplexItem::_setDirty); - connect(this, &LandingComplexItem::useLoiterToAltChanged, this, &LandingComplexItem::_setDirty); connect(stopTakingPhotos(), &Fact::valueChanged, this, &LandingComplexItem::_signalLastSequenceNumberChanged); connect(stopTakingVideo(), &Fact::valueChanged, this, &LandingComplexItem::_signalLastSequenceNumberChanged); diff --git a/src/MissionManager/LandingComplexItem.h b/src/MissionManager/LandingComplexItem.h index 3d039c4..a28e018 100644 --- a/src/MissionManager/LandingComplexItem.h +++ b/src/MissionManager/LandingComplexItem.h @@ -122,8 +122,6 @@ signals: void loiterTangentCoordinateChanged (QGeoCoordinate coordinate); void landingCoordinateChanged (QGeoCoordinate coordinate); void landingCoordSetChanged (bool landingCoordSet); - void loiterClockwiseChanged (bool loiterClockwise); - void useLoiterToAltChanged (bool useLoiterToAlt); void altitudesAreRelativeChanged (bool altitudesAreRelative); void _updateFlightPathSegmentsSignal(void); diff --git a/src/MissionManager/LandingComplexItemTest.cc b/src/MissionManager/LandingComplexItemTest.cc index c7cfd50..59f16d1 100644 --- a/src/MissionManager/LandingComplexItemTest.cc +++ b/src/MissionManager/LandingComplexItemTest.cc @@ -40,8 +40,6 @@ void LandingComplexItemTest::init(void) rgSignals[loiterTangentCoordinateChangedIndex] = SIGNAL(loiterTangentCoordinateChanged(QGeoCoordinate)); rgSignals[landingCoordinateChangedIndex] = SIGNAL(landingCoordinateChanged(QGeoCoordinate)); rgSignals[landingCoordSetChangedIndex] = SIGNAL(landingCoordSetChanged(bool)); - rgSignals[loiterClockwiseChangedIndex] = SIGNAL(loiterClockwiseChanged(bool)); - rgSignals[useLoiterToAltChangedIndex] = SIGNAL(useLoiterToAltChanged(bool)); rgSignals[altitudesAreRelativeChangedIndex] = SIGNAL(altitudesAreRelativeChanged(bool)); rgSignals[_updateFlightPathSegmentsSignalIndex] = SIGNAL(_updateFlightPathSegmentsSignal()); diff --git a/src/MissionManager/LandingComplexItemTest.h b/src/MissionManager/LandingComplexItemTest.h index b945dd3..263378e 100644 --- a/src/MissionManager/LandingComplexItemTest.h +++ b/src/MissionManager/LandingComplexItemTest.h @@ -39,8 +39,6 @@ private: loiterTangentCoordinateChangedIndex, landingCoordinateChangedIndex, landingCoordSetChangedIndex, - loiterClockwiseChangedIndex, - useLoiterToAltChangedIndex, altitudesAreRelativeChangedIndex, _updateFlightPathSegmentsSignalIndex, maxSignalIndex, @@ -51,8 +49,6 @@ private: loiterTangentCoordinateChangedMask = 1 << loiterTangentCoordinateChangedIndex, landingCoordinateChangedMask = 1 << landingCoordinateChangedIndex, landingCoordSetChangedMask = 1 << landingCoordSetChangedIndex, - loiterClockwiseChangedMask = 1 << loiterClockwiseChangedIndex, - useLoiterToAltChangedMask = 1 << useLoiterToAltChangedIndex, altitudesAreRelativeChangedMask = 1 << altitudesAreRelativeChangedIndex, _updateFlightPathSegmentsSignalMask = 1 << _updateFlightPathSegmentsSignalIndex, };