remove mid bras

This commit is contained in:
ackimixs
2024-04-11 15:00:28 +02:00
parent 487baae1fc
commit efaa61d0f3
2 changed files with 0 additions and 21 deletions

View File

@@ -37,11 +37,6 @@ void MyTCPClient::handleMessage(const std::string &message) {
this->fermer_pince(2);
this->lever_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,20 +91,6 @@ void MyTCPClient::baisser_bras(bool force) {
brasBaisse = 0;
}
/*void MyTCPClient::mid_bras(bool force) {
if (brasBaisse == 1 && !force){
return;
}
int angle = 80;
for (int i = 1; i <= angle;i++){
usleep(5'000);
this->pwm_setServoPosition(4, i);
this->pwm_setServoPosition(5, angle-i);
}
brasBaisse = 1;
}*/
void MyTCPClient::lever_bras(bool force) {
if (!brasBaisse == 2 && !force){
return;

View File

@@ -24,8 +24,6 @@ public:
void baisser_bras(bool force = false);
// void mid_bras(bool force = false);
void lever_bras(bool force = false);
void fermer_pince(int pince, bool force = false);