mirror of
https://github.com/modelec/ihm.git
synced 2026-01-18 16:47:32 +01:00
panneau
This commit is contained in:
@@ -33,6 +33,8 @@ Homologation::Homologation(QWidget *parent) : QWidget(parent) {
|
||||
connect(this->replier, &QPushButton::pressed, this, &Homologation::onReplierClicked);
|
||||
|
||||
connect(this->panneauGauche, &QPushButton::pressed, this, &Homologation::onPanneauGaucheClicked);
|
||||
|
||||
connect(this->panneauDroit, &QPushButton::pressed, this, &Homologation::onPanneauDroitClicked);
|
||||
}
|
||||
|
||||
void Homologation::onDeplierClicked()
|
||||
|
||||
@@ -65,6 +65,8 @@ MainWindow::MainWindow(const char *address, int port, QWidget *parent) : QMainWi
|
||||
});
|
||||
|
||||
connect(this->homologation, &Homologation::replierClicked, [&]() {
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;uncheck panneau;6\n");
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;uncheck panneau;7\n");
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;0");
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;1");
|
||||
@@ -75,13 +77,15 @@ MainWindow::MainWindow(const char *address, int port, QWidget *parent) : QMainWi
|
||||
});
|
||||
|
||||
connect(this->homologation, &Homologation::panneauGaucheClicked, [&]() {
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;uncheck panneau;6\n");
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;baisser bras;1\n");
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;check panneau;6\n");
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;check panneau;7\n");
|
||||
});
|
||||
|
||||
connect(this->homologation, &Homologation::panneauDroitClicked, [&]() {
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;uncheck panneau;7\n");
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;baisser bras;1\n");
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;check panneau;7\n");
|
||||
this->tcpClient->sendMessage("ihm;servo_moteur;check panneau;6\n");
|
||||
});
|
||||
|
||||
this->teamChooser = new TeamChooser(centralWidget);
|
||||
|
||||
Reference in New Issue
Block a user