Commit de6671ad authored by Don Gagne's avatar Don Gagne Committed by Gus Grubba

setCoordinate was screwing up altitude/param7 syncronization

parent 64c930d5
......@@ -815,8 +815,10 @@ void SimpleMissionItem::setCommand(int command)
void SimpleMissionItem::setCoordinate(const QGeoCoordinate& coordinate)
if (_missionItem.coordinate() != coordinate) {
// We only use lat/lon from coordinate. This keeps param7 and the altitude value which is kept to the side in sync.
if (_missionItem.param5() != coordinate.latitude() || _missionItem.param6() != coordinate.longitude()) {
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