Commit fd7afab6 authored by Don Gagne's avatar Don Gagne

Don't use home for last altitude

parent 6ef1c81a
......@@ -778,7 +778,8 @@ bool MissionController::_findLastAltitude(double* lastAltitude)
bool found = false;
double foundAltitude;
for (int i=0; i<_missionItems->count(); i++) {
// Don't use home position
for (int i=1; i<_missionItems->count(); i++) {
MissionItem* item = qobject_cast<MissionItem*>(_missionItems->get(i));
if (item->specifiesCoordinate() && !item->standaloneCoordinate()) {
......
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