From 12db026e77be9cbf946d731673683496625ee5ea Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 18 Apr 2024 19:13:32 +0200 Subject: [PATCH] change max distance --- TCPServer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 547c53c..df7de30 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -422,7 +422,7 @@ void TCPServer::startGameBlueTeam() { while (!found) { for (const auto & arucoTag : this->arucoTags) { if (TCPUtils::endWith(arucoTag.name(), "flower")) { - if (arucoTag.pos().first[0] < 800 && arucoTag.pos().first[0] > 100 && arucoTag.pos().first[1] < 300 && arucoTag.pos().first[1] > -300) { + if (arucoTag.pos().first[0] < 1000 && arucoTag.pos().first[0] > 100 && arucoTag.pos().first[1] < 300 && arucoTag.pos().first[1] > -300) { tag = arucoTag; found = true; break; @@ -468,7 +468,7 @@ void TCPServer::startGameBlueTeam() { while (!found) { for (const auto & arucoTag : this->arucoTags) { if (TCPUtils::contains(arucoTag.name(), "flower")) { - if (arucoTag.pos().first[0] < 800 && arucoTag.pos().first[0] > 300 && arucoTag.pos().first[1] < 300 && arucoTag.pos().first[1] > -300) { + if (arucoTag.pos().first[0] < 1000 && arucoTag.pos().first[0] > 300 && arucoTag.pos().first[1] < 300 && arucoTag.pos().first[1] > -300) { tag = arucoTag; found = true; break; @@ -514,7 +514,7 @@ void TCPServer::startGameBlueTeam() { while (!found) { for (const auto & arucoTag : this->arucoTags) { if (TCPUtils::contains(arucoTag.name(), "flower")) { - if (arucoTag.pos().first[0] < 800 && arucoTag.pos().first[0] > 300 && arucoTag.pos().first[1] < 300 && arucoTag.pos().first[1] > -300) { + if (arucoTag.pos().first[0] < 1000 && arucoTag.pos().first[0] > 300 && arucoTag.pos().first[1] < 300 && arucoTag.pos().first[1] > -300) { tag = arucoTag; found = true; break;