Commit 8c31a198 authored by Don Gagne's avatar Don Gagne Committed by Gus Grubba

Removed setCoordinate support to reduce confusion

parent de6671ad
......@@ -409,13 +409,6 @@ void MissionItem::setParam7(double param)
}
}
void MissionItem::setCoordinate(const QGeoCoordinate& coordinate)
{
setParam5(coordinate.latitude());
setParam6(coordinate.longitude());
setParam7(coordinate.altitude());
}
QGeoCoordinate MissionItem::coordinate(void) const
{
if(!std::isfinite(param5()) || !std::isfinite(param6())) {
......
......@@ -96,7 +96,6 @@ public:
void setParam5 (double param5);
void setParam6 (double param6);
void setParam7 (double param7);
void setCoordinate (const QGeoCoordinate& coordinate);
void save(QJsonObject& json) const;
bool load(QTextStream &loadStream);
......
......@@ -37,7 +37,9 @@ void MissionManagerTest::_writeItems(MockLinkMissionItemHandler::FailureMode_t f
// Editor has a home position item on the front, so we do the same
MissionItem* homeItem = new MissionItem(NULL /* Vehicle */, this);
homeItem->setCommand(MAV_CMD_NAV_WAYPOINT);
homeItem->setCoordinate(QGeoCoordinate(47.3769, 8.549444, 0));
homeItem->setParam5(47.3769);
homeItem->setParam6(8.549444);
homeItem->setParam7(0);
homeItem->setSequenceNumber(0);
missionItems.append(homeItem);
......
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