mirror of
https://github.com/modelec/servo_moteurs.git
synced 2026-01-18 16:47:23 +01:00
Restructuration globale des methodes du bras et ajout de structure pour gérer les angles du bras
This commit is contained in:
@@ -123,8 +123,9 @@ void MyTCPClient::transport_bras(){
|
||||
this->pwm_setServoPosition(5, angleBrasHaut.servo5-i-angleBrasHaut.servo4);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
case BRAS_TRANSPORT:
|
||||
this->pwm_setServoPosition(4, angleBrasTransport.servo4);
|
||||
this->pwm_setServoPosition(5, angleBrasTransport.servo5);
|
||||
}
|
||||
this->positionBras = BRAS_TRANSPORT;
|
||||
}
|
||||
@@ -145,8 +146,9 @@ void MyTCPClient::lever_bras() {
|
||||
usleep(5'000);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
case BRAS_HAUT:
|
||||
this->pwm_setServoPosition(4, angleBrasHaut.servo4);
|
||||
this->pwm_setServoPosition(5, angleBrasHaut.servo5);
|
||||
}
|
||||
this->positionBras = BRAS_HAUT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user