From 699e8826a9c7aed4c04403ae35951f895237a5d4 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 4 Apr 2024 19:04:36 +0200 Subject: [PATCH] change timing --- MainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MainWindow.cpp b/MainWindow.cpp index 570f3fa..8a95f0f 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -73,9 +73,9 @@ MainWindow::MainWindow(const char *address, int port, QWidget *parent) : QMainWi this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;1"); 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(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;baisser bras;1"); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;uncheck panneau;6"); std::this_thread::sleep_for(std::chrono::milliseconds(100)); this->tcpClient->sendMessage("ihm;servo_moteur;uncheck panneau;7");