carte esclave pompe 2020 V1

Dependencies:   mbed ident_crac

Revision:
23:7f62f27c028f
Parent:
22:f104afbecb98
Child:
24:3fb41d2b91af
--- a/class_ventouse.cpp	Sun Mar 08 23:05:13 2020 +0000
+++ b/class_ventouse.cpp	Mon Jul 13 11:31:08 2020 +0000
@@ -4,24 +4,6 @@
 #define PWM_POMPE 0.7
 #define PWM_ELECTROVANNE 0.3
 
-/*Ventouse::Ventouse(PinName pinPompe, PinName pinCapteurPression, char index) : m_pinPompe(pinPompe),
-m_pinCapteurPression(pinCapteurPression), m_index(index)
-{
-    m_pompe = new PwmOut(m_pinPompe);
-    m_pression = new AnalogIn(m_pinCapteurPression);
-    
-    m_pompe->period_us(20);   
-    m_pompe->write(0);
-    
-    flag_attraper = 0;
-    flag_relacher = 0;
-    
-    etat = Attente; 
-    m_ack = 0;
-    flag_electrovanne = 0;
-}*/
-
-
 Ventouse::Ventouse(PinName pinPompe, PinName pinElectrovanne, PinName pinCapteurPression, char index) : m_pinPompe(pinPompe),
 m_pinElectrovanne(pinElectrovanne), m_pinCapteurPression(pinCapteurPression), m_index(index)
 {
@@ -96,6 +78,7 @@
 {
     m_pompe->write(PWM_POMPE);
     if(flag_electrovanne) m_electrovanne->write(0.0);
+    //modifier ligne de condition
 }
 
 void Ventouse::relacher()