From d5715d5c81f8401af45889b8c475a6b113043d1b Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 19 May 2014 16:41:58 +0200 Subject: [PATCH] UAS Manager: do not link home positions --- src/uas/UASManager.cc | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/uas/UASManager.cc b/src/uas/UASManager.cc index 4a38fe2247..fe2fd53daf 100644 --- a/src/uas/UASManager.cc +++ b/src/uas/UASManager.cc @@ -230,21 +230,22 @@ void UASManager::nedToWgs84(const double& x, const double& y, const double& z, d */ void UASManager::uavChangedHomePosition(int uav, double lat, double lon, double alt) { - // FIXME: Accept any home position change for now from the active UAS - // this means that the currently select UAS can change the home location - // of the whole swarm. This makes sense, but more control might be needed + // Accept home position changes from the active UAS if (uav == activeUAS->getUASID()) { if (setHomePosition(lat, lon, alt)) { - foreach (UASInterface* mav, systems) - { - // Only update the other systems, not the original source - if (mav->getUASID() != uav) - { - mav->setHomePosition(homeLat, homeLon, homeAlt); - } - } + // XXX DO NOT UPDATE THE WHOLE FLEET + + +// foreach (UASInterface* mav, systems) +// { +// // Only update the other systems, not the original source +// if (mav->getUASID() != uav) +// { +// mav->setHomePosition(homeLat, homeLon, homeAlt); +// } +// } } } } -- GitLab