This commit is contained in:
ackimixs
2024-05-06 21:46:27 +02:00
parent c8230d6931
commit 7d2e813f0c
2 changed files with 3 additions and 3 deletions

View File

@@ -171,7 +171,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
std::vector<std::string> args = TCPUtils::split(tokens[3], ",");
this->lidarCalculatePos = {std::stof(args[0]), std::stof(args[1]), std::stof(args[2]) / 100};
this->setPosition(this->lidarCalculatePos);
usleep(100'000);
usleep(50'000);
this->setPosition(this->lidarCalculatePos);
awaitForLidar = false;
}

View File

@@ -122,7 +122,7 @@ private:
TURN_SOLAR_PANNEL_2,
TURN_SOLAR_PANNEL_3,
CHECKPOINT_TRANSITION_SOLAR_PANEL_FLOWER,
// GET_LIDAR_POS,
GET_LIDAR_POS,
/*TAKE_FLOWER_BOTTOM,
TAKE_FLOWER_BOTTOM,
@@ -133,7 +133,7 @@ private:
TAKE_3_PLANT_BOTTOM_2,
REMOVE_POT_J2,
DROP_FLOWER_J2,
// GET_LIDAR_POS,
GET_LIDAR_POS,
/*DROP_PURPLE_FLOWER,
DROP_WHITE_FLOWER_J1,*/