Commit 24bbbf6a authored by Valentin Platzgummer's avatar Valentin Platzgummer

circular survey trying to solve altitude issue

parent 83ef2e52
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -415,6 +415,15 @@ void TransectStyleComplexItem::_rebuildTransects(void)
emit additionalTimeDelayChanged();
}
void TransectStyleComplexItem::_updateTransectAltitude()
{
double altitude = _cameraCalc.distanceToSurface()->rawValue().toDouble();
if (altitude > 0)
for (auto list : _transects)
for (auto vertex : list)
vertex.coord.setAltitude(altitude);
}
void TransectStyleComplexItem::_queryTransectsPathHeightInfo(void)
{
_transectsPathHeightInfo.clear();
......
......@@ -134,6 +134,7 @@ protected slots:
void _updateCoordinateAltitudes (void);
void _polyPathTerrainData (bool success, const QList<TerrainPathQuery::PathHeightInfo_t>& rgPathHeightInfo);
void _rebuildTransects (void);
void _updateTransectAltitude (void);
protected:
virtual void _rebuildTransectsPhase1 (void) = 0; ///< Rebuilds the _transects array
......
......@@ -35,6 +35,7 @@ CircularSurveyComplexItem::CircularSurveyComplexItem(Vehicle *vehicle, bool flyV
connect(&_transectMinLength, &Fact::valueChanged, this, &CircularSurveyComplexItem::_rebuildTransects);
connect(&_isSnakePath, &Fact::valueChanged, this, &CircularSurveyComplexItem::_rebuildTransects);
connect(this, &CircularSurveyComplexItem::refPointChanged, this, &CircularSurveyComplexItem::_rebuildTransects);
//connect(&_cameraCalc.distanceToSurface(), &Fact::rawValueChanged, this->)
}
......
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