From 40f99b23fc34e31175d4ec2f9f0db080ff24d7b0 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 4 Apr 2024 19:01:28 +0200 Subject: [PATCH] change timing --- MainWindow.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/MainWindow.cpp b/MainWindow.cpp index 75d160f..94f54a5 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -49,35 +49,35 @@ MainWindow::MainWindow(const char *address, int port, QWidget *parent) : QMainWi this->homologation = new Homologation(centralWidget); connect(this->homologation, &Homologation::deplierClicked, this, [&]() { this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;0"); - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;1"); - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;2"); - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;lever bras;1"); std::this_thread::sleep_for(std::chrono::milliseconds(1000)); this->tcpClient->sendMessage("ihm;servo_moteur;ouvrir pince;0"); - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;1"); - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;ouvrir pince;2"); - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;check panneau;6"); - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;check panneau;7"); }); connect(this->homologation, &Homologation::replierClicked, [&]() { this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;0"); - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;1"); - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;2"); - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;baisser bras;1"); std::this_thread::sleep_for(std::chrono::milliseconds(1000)); this->tcpClient->sendMessage("ihm;servo_moteur;uncheck panneau;6"); - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;uncheck panneau;7"); });