![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
carte esclave pompe 2020 V1
Dependencies: mbed ident_crac
Diff: class_ventouse.cpp
- Revision:
- 10:765b4ff6d721
- Parent:
- 8:a25a9c22ba91
- Child:
- 12:2491a5b0f90b
--- a/class_ventouse.cpp Wed May 22 12:12:32 2019 +0000 +++ b/class_ventouse.cpp Wed May 22 15:42:29 2019 +0000 @@ -4,10 +4,12 @@ #ifdef ROBOT_SMALL float seuil[NB_VENTOUSES] = {0.10, 0.3, 0.3, 0.3, 0.10, 0.3, 0.3, 0.3}; +#define PWM_POMPE 0.7 #endif #ifdef ROBOT_BIG float seuil[NB_VENTOUSES] = {0.3, 0.3, 0.3}; +#define PWM_POMPE 1.0 #endif @@ -106,7 +108,7 @@ void Ventouse::attraper() { - m_pompe->write(0.7); + m_pompe->write(PWM_POMPE); if(flag_electrovanne) m_electrovanne->write(0); }