Browse Source

Merge pull request #8222 from DonLakeFlyer/FollowMeLog

Follow Me logging
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
f16168c30c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/FollowMe/FollowMe.cc

3
src/FollowMe/FollowMe.cc

@ -19,6 +19,8 @@ @@ -19,6 +19,8 @@
#include "SettingsManager.h"
#include "AppSettings.h"
QGC_LOGGING_CATEGORY(FollowMeLog, "FollowMeLog")
FollowMe::FollowMe(QGCApplication* app, QGCToolbox* toolbox)
: QGCTool(app, toolbox)
{
@ -133,6 +135,7 @@ void FollowMe::_sendGCSMotionReport() @@ -133,6 +135,7 @@ void FollowMe::_sendGCSMotionReport()
for (int i=0; i<vehicles->count(); i++) {
Vehicle* vehicle = vehicles->value<Vehicle*>(i);
if (_currentMode == MODE_ALWAYS || (_currentMode == MODE_FOLLOWME && _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