From 487baae1fc33bcbcf89b3b979c8dd5dc8989cea9 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 11 Apr 2024 14:59:15 +0200 Subject: [PATCH] mid bras --- MyTCPClient.cpp | 8 ++++---- MyTCPClient.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MyTCPClient.cpp b/MyTCPClient.cpp index ecda400..e022144 100644 --- a/MyTCPClient.cpp +++ b/MyTCPClient.cpp @@ -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) { diff --git a/MyTCPClient.h b/MyTCPClient.h index 8a86b8f..9b51c73 100644 --- a/MyTCPClient.h +++ b/MyTCPClient.h @@ -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);