gobeur de gobelets, gestion de la turbine et du servomoteur en automateet du message ROS lié
Dependents: stm32_actuator_gobeur
Diff: Gobeur.cpp
- Revision:
- 5:64a88f154e65
- Parent:
- 3:44a200543540
--- a/Gobeur.cpp Thu Jul 08 16:42:22 2021 +0000 +++ b/Gobeur.cpp Thu Jul 08 22:45:59 2021 +0000 @@ -21,7 +21,7 @@ switch(_state) { case released: - if( (_order == suck ) || ((clock_s() - _time) > 2*GOBEUR_PAUSE_TIMEOUT)&&1 ) + if( (_order == suck ) || ((clock_s() - _time) > 2*GOBEUR_PAUSE_TIMEOUT)&&0 ) { _state = sucking; // *_servo = GOBEUR_SERVO_POS_OPEN; @@ -49,7 +49,7 @@ } break; case sucked: - if( (_order == release ) || ((clock_s() - _time) > GOBEUR_PAUSE_TIMEOUT)&&1 ) + if( (_order == release ) || ((clock_s() - _time) > GOBEUR_PAUSE_TIMEOUT)&&0) { _state = releasing; *_servo = _servo_open;