From 58343564f342e0cc8d7259e0cc8f1a7c22428e64 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 7 May 2024 21:59:09 +0200 Subject: [PATCH] solar panel --- TCPServer.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 52b86bd..213ab18 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -1225,7 +1225,7 @@ void TCPServer::goAndTurnSolarPanel(const StratPattern sp) { awaitRobotIdle(); this->checkPanneau(7); - usleep(700'000); + usleep(300'000); this->uncheckPanneau(7); break; case TURN_SOLAR_PANNEL_2: @@ -1236,7 +1236,7 @@ void TCPServer::goAndTurnSolarPanel(const StratPattern sp) { awaitRobotIdle(); this->checkPanneau(7); - usleep(700'000); + usleep(300'000); this->uncheckPanneau(7); break; case TURN_SOLAR_PANNEL_3: @@ -1247,7 +1247,7 @@ void TCPServer::goAndTurnSolarPanel(const StratPattern sp) { awaitRobotIdle(); this->checkPanneau(7); - usleep(700'000); + usleep(300'000); this->uncheckPanneau(7); break; default: @@ -1263,29 +1263,29 @@ void TCPServer::goAndTurnSolarPanel(const StratPattern sp) { awaitRobotIdle(); this->checkPanneau(6); - usleep(700'000); + usleep(300'000); this->uncheckPanneau(6); break; case TURN_SOLAR_PANNEL_2: - this->go(2530, 1790); + this->go(2545, 1790); awaitRobotIdle(); this->rotate(PI); awaitRobotIdle(); this->checkPanneau(6); - usleep(700'000); + usleep(300'000); this->uncheckPanneau(6); break; case TURN_SOLAR_PANNEL_3: - this->go(2325, 1790); + this->go(2350, 1790); awaitRobotIdle(); this->rotate(PI); awaitRobotIdle(); this->checkPanneau(6); - usleep(700'000); + usleep(300'000); this->uncheckPanneau(6); break; default: