mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-03-30 12:29:37 +02:00
speed | sleep
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user