From e3185f638885e30668b9e9b7cdeef0617ebd734c Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 7 May 2024 21:15:33 +0200 Subject: [PATCH] speed --- TCPServer.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 3bbdf28..5c96354 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -1515,11 +1515,11 @@ void TCPServer::go3Plants(const StratPattern sp) { this->baisserBras(); + this->setMaxSpeed(); + this->rotate(angle); awaitRobotIdle(); - this->setMaxSpeed(); - this->go(plantPosition[0]-400, plantPosition[1]); awaitRobotIdle(); @@ -1556,7 +1556,6 @@ void TCPServer::go3Plants(const StratPattern sp) { } usleep(500'000); - this->setSpeed(150); this->rotate(angle); awaitRobotIdle(); @@ -1587,11 +1586,11 @@ void TCPServer::removePot(StratPattern sp) { if (sp == REMOVE_POT_J2) { this->transit(230, 1100, 150); awaitRobotIdle(); + this->setMaxSpeed(); this->go(190, 900); awaitRobotIdle(); this->go(190, 400); awaitRobotIdle(); - this->setMaxSpeed(); this->go(230, 650); awaitRobotIdle(); } @@ -1599,11 +1598,11 @@ void TCPServer::removePot(StratPattern sp) { if (sp == REMOVE_POT_J2) { this->transit(2770, 1100, 150); awaitRobotIdle(); + this->setMaxSpeed(); this->go(2810, 900); awaitRobotIdle(); this->go(2810, 400); awaitRobotIdle(); - this->setMaxSpeed(); this->go(2770, 650); awaitRobotIdle(); }