speed | sleep

This commit is contained in:
ackimixs
2024-05-07 14:45:51 +02:00
parent 9b0680fe3e
commit 040078faf9
2 changed files with 6 additions and 6 deletions

View File

@@ -1612,13 +1612,15 @@ void TCPServer::getLidarPos() {
this->setPosition(this->robotPose, this->lidarSocket);
usleep(100'000);
this->askLidarPosition();
awaitForLidar = true;
// ReSharper disable once CppDFAConstantConditions
// ReSharper disable once CppDFAEndlessLoop
while (awaitForLidar) {
usleep(100'000);
usleep(50'000);
}
// ReSharper disable once CppDFAUnreachableCode
@@ -1678,8 +1680,7 @@ void TCPServer::setSpeed(const int speed) {
}
void TCPServer::setMaxSpeed() {
// this->setSpeed(MAX_SPEED);
this->setSpeed(200);
this->setSpeed(MAX_SPEED);
}
void TCPServer::setMinSpeed() {

View File

@@ -124,12 +124,11 @@ private:
TAKE_FLOWER_BOTTOM,
TAKE_FLOWER_BOTTOM,*/
// GET_LIDAR_POS,
TAKE_3_PLANT_BOTTOM_1,
DROP_FLOWER_BASE_2,
TAKE_3_PLANT_BOTTOM_2,
// GET_LIDAR_POS,
GET_LIDAR_POS,
REMOVE_POT_J2,
DROP_FLOWER_J2,
@@ -141,7 +140,7 @@ private:
TAKE_FLOWER_TOP,*/
TAKE_3_PLANT_TOP_1,
// GET_LIDAR_POS,
GET_LIDAR_POS,
DROP_FLOWER_J1,
/*DROP_PURPLE_FLOWER,