Unverified Commit f16168c3 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8222 from DonLakeFlyer/FollowMeLog

Follow Me logging
parents bab9fbe9 70dc8c10
......@@ -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()
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);
}
}
......
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