mirror of
https://github.com/modelec/ihm.git
synced 2026-01-19 00:57:27 +01:00
change timing
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user