![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
carte esclave pompe 2020 V1
Dependencies: mbed ident_crac
Diff: class_ventouse.cpp
- Revision:
- 4:82c90657da4a
- Parent:
- 2:4cc8fa2f64be
- Child:
- 5:176e7353ba1c
--- a/class_ventouse.cpp Tue May 07 13:14:29 2019 +0000 +++ b/class_ventouse.cpp Wed May 08 17:46:13 2019 +0000 @@ -1,4 +1,6 @@ #include "class_ventouse.h" +#include "extern.h" +#include "ident_CRAC.h" #define SEUIL 0.30 @@ -37,7 +39,8 @@ case Attraper : if(getPression()) - { + { + can.write(CANMessage(HACHEUR_GET_ATOM_ACK,&m_index,1)); etat = Attraper_ok; }else if(flag_relacher) { @@ -58,6 +61,7 @@ case Relacher : if(!getPression()) { + can.write(CANMessage(HACHEUR_RELEASE_ATOM_ACK,&m_index,1)); m_electrovanne->write(0.0); etat = Attente; }