mirror of
https://github.com/modelec/ihm.git
synced 2026-03-18 21:30:52 +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->replier, &QPushButton::pressed, this, &Homologation::onReplierClicked);
|
||||||
|
|
||||||
connect(this->panneauGauche, &QPushButton::pressed, this, &Homologation::onPanneauGaucheClicked);
|
connect(this->panneauGauche, &QPushButton::pressed, this, &Homologation::onPanneauGaucheClicked);
|
||||||
|
|
||||||
|
connect(this->panneauDroit, &QPushButton::pressed, this, &Homologation::onPanneauDroitClicked);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Homologation::onDeplierClicked()
|
void Homologation::onDeplierClicked()
|
||||||
|
|||||||
@@ -65,6 +65,8 @@ MainWindow::MainWindow(const char *address, int port, QWidget *parent) : QMainWi
|
|||||||
});
|
});
|
||||||
|
|
||||||
connect(this->homologation, &Homologation::replierClicked, [&]() {
|
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");
|
this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;0");
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||||
this->tcpClient->sendMessage("ihm;servo_moteur;fermer pince;1");
|
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, [&]() {
|
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;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, [&]() {
|
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;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);
|
this->teamChooser = new TeamChooser(centralWidget);
|
||||||
|
|||||||
Reference in New Issue
Block a user