Browse Source

Rally point count incorrect

QGC4.4
Don Gagne 9 years ago
parent
commit
1b38249066
  1. 2
      src/FirmwarePlugin/APM/APMRallyPointManager.cc

2
src/FirmwarePlugin/APM/APMRallyPointManager.cc

@ -90,7 +90,7 @@ void APMRallyPointManager::_mavlinkMessageReceived(const mavlink_message_t& mess
QGeoCoordinate point((float)rallyPoint.lat / 1e7, (float)rallyPoint.lng / 1e7, rallyPoint.alt); QGeoCoordinate point((float)rallyPoint.lat / 1e7, (float)rallyPoint.lng / 1e7, rallyPoint.alt);
_rgPoints.append(point); _rgPoints.append(point);
if (rallyPoint.idx < _cReadRallyPoints - 2) { if (rallyPoint.idx < _cReadRallyPoints - 1) {
// Still more points to request // Still more points to request
_requestRallyPoint(++_currentRallyPoint); _requestRallyPoint(++_currentRallyPoint);
} else { } else {

Loading…
Cancel
Save