This commit is contained in:
ackimixs
2024-04-11 14:59:15 +02:00
parent b12d2df9e8
commit 487baae1fc
2 changed files with 5 additions and 5 deletions

View File

@@ -37,11 +37,11 @@ void MyTCPClient::handleMessage(const std::string &message) {
this->fermer_pince(2);
this->lever_bras();
}
else if (token[2] == "mid bras") {
/*else if (token[2] == "mid bras") {
this->fermer_pince(0);
this->fermer_pince(2);
this->mid_bras();
}
}*/
else if (token[2] == "check panneau") {
int bras = std::stoi(token[3]);
this->check_panneau(bras);
@@ -96,7 +96,7 @@ void MyTCPClient::baisser_bras(bool force) {
brasBaisse = 0;
}
void MyTCPClient::mid_bras(bool force) {
/*void MyTCPClient::mid_bras(bool force) {
if (brasBaisse == 1 && !force){
return;
}
@@ -107,7 +107,7 @@ void MyTCPClient::mid_bras(bool force) {
this->pwm_setServoPosition(5, angle-i);
}
brasBaisse = 1;
}
}*/
void MyTCPClient::lever_bras(bool force) {

View File

@@ -24,7 +24,7 @@ public:
void baisser_bras(bool force = false);
void mid_bras(bool force = false);
// void mid_bras(bool force = false);
void lever_bras(bool force = false);