mirror of
https://github.com/modelec/servo_moteurs.git
synced 2026-01-18 16:47:23 +01:00
Angle progressif pano
This commit is contained in:
@@ -222,11 +222,15 @@ void MyTCPClient::ouvrir_pince(int pince, bool force) {
|
||||
|
||||
|
||||
void MyTCPClient::check_panneau(int quelBras) {
|
||||
this->pwm_setServoPosition(quelBras, 30);
|
||||
for (int i = PANO_BAS; i <= PANO_HAUT;i++){
|
||||
this->pwm_setServoPosition(quelBras, i);
|
||||
}
|
||||
}
|
||||
|
||||
void MyTCPClient::uncheck_panneau(int quelBras) {
|
||||
this->pwm_setServoPosition(quelBras, 0);
|
||||
for (int i = PANO_HAUT; i >= PANO_BAS;i--){
|
||||
this->pwm_setServoPosition(quelBras, i);
|
||||
}
|
||||
}
|
||||
|
||||
void MyTCPClient::pwm_clear() {
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
|
||||
#define SERVO_MIN 82 // 0.02*4096
|
||||
#define SERVO_MAX 492 // 0.12*4096
|
||||
#define PANO_HAUT 25
|
||||
#define PANO_BAS 5
|
||||
|
||||
|
||||
enum BrasState {
|
||||
BRAS_BAS,
|
||||
|
||||
Reference in New Issue
Block a user