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;