From 6db3447fa7c1531a28bf394f393dfdb59fc9145d Mon Sep 17 00:00:00 2001 From: Samuel Tabor Date: Fri, 20 Mar 2020 18:29:15 +0000 Subject: [PATCH] FollowMe: Fix bug preventing sending GCS motion report when setting is always. --- src/FollowMe/FollowMe.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FollowMe/FollowMe.cc b/src/FollowMe/FollowMe.cc index b75df953a..a697f1c10 100644 --- a/src/FollowMe/FollowMe.cc +++ b/src/FollowMe/FollowMe.cc @@ -151,7 +151,7 @@ void FollowMe::_sendGCSMotionReport() for (int i=0; icount(); i++) { Vehicle* vehicle = vehicles->value(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); } -- 2.22.0