mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-03-29 11:59:37 +02:00
change speed
This commit is contained in:
@@ -355,7 +355,7 @@ void TCPServer::startGame() {
|
||||
this->broadcastMessage("strat;servo_moteur;fermer pince;2\n");
|
||||
this->broadcastMessage("strat;servo_moteur;ouvrir pince;0\n");
|
||||
// TODO set to 200 when the robot is ready
|
||||
this->broadcastMessage("strat;arduino;speed;150\n");
|
||||
this->broadcastMessage("strat;arduino;speed;2000\n");
|
||||
|
||||
this->broadcastMessage("strat;aruco;get aruco;1\n");
|
||||
|
||||
@@ -536,7 +536,7 @@ void TCPServer::goToAruco(const ArucoTag &arucoTag, const int pince) {
|
||||
|
||||
// ReSharper disable once CppDFAUnreachableCode
|
||||
// TODO set to 150 when the robot is ready
|
||||
this->broadcastMessage("strat;arduino;speed;110\n");
|
||||
this->broadcastMessage("strat;arduino;speed;150\n");
|
||||
usleep(1'000'000);
|
||||
|
||||
xPrime += x30Percent;
|
||||
@@ -559,7 +559,7 @@ void TCPServer::goToAruco(const ArucoTag &arucoTag, const int pince) {
|
||||
usleep(500'000);
|
||||
this->broadcastMessage("strat;servo_moteur;lever bras;1\n");
|
||||
// TODO set to 200 when the robot is ready
|
||||
this->broadcastMessage("strat;arduino;speed;150\n");
|
||||
this->broadcastMessage("strat;arduino;speed;200\n");
|
||||
pinceState[pince] = arucoTag.name() == "Purple_flower" ? PURPLE_FLOWER : WHITE_FLOWER;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user