Browse Source

Merge pull request #8579 from samuelctabor/followMe_fix

FollowMe: Fix "Always" settings for streaming GCS position
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
8c9d7095e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/FollowMe/FollowMe.cc

2
src/FollowMe/FollowMe.cc

@ -151,7 +151,7 @@ void FollowMe::_sendGCSMotionReport() @@ -151,7 +151,7 @@ void FollowMe::_sendGCSMotionReport()
for (int i=0; i<vehicles->count(); i++) {
Vehicle* vehicle = vehicles->value<Vehicle*>(i);
if (_isFollowFlightMode(vehicle, vehicle->flightMode())) {
if (_currentMode == MODE_ALWAYS || _isFollowFlightMode(vehicle, vehicle->flightMode())) {
qCDebug(FollowMeLog) << "sendGCSMotionReport latInt:lonInt:altMetersAMSL" << motionReport.lat_int << motionReport.lon_int << motionReport.altMetersAMSL;
vehicle->firmwarePlugin()->sendGCSMotionReport(vehicle, motionReport, estimatation_capabilities);
}

Loading…
Cancel
Save