mirror of
https://github.com/modelec/servo_moteurs.git
synced 2026-03-18 21:40:31 +01:00
Ajout de l'ouverture/fermeture progressif de pinces (fix un bug)
This commit is contained in:
@@ -131,7 +131,7 @@ void MyTCPClient::ouvrir_pince(int pince) {
|
||||
break;
|
||||
}
|
||||
std::cout << "Ouvrir pince : " << pince << std::endl;
|
||||
for (int i = old_angle; i >= old_angle;i--){
|
||||
for (int i = old_angle; i >= angle;i--){
|
||||
this->pwm_setServoPosition(pince, i);
|
||||
usleep(5'000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user