![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
carte esclave pompe 2020 V1
Dependencies: mbed ident_crac
class_ventouse.h@0:84a8c24e29ae, 2019-05-06 (annotated)
- Committer:
- marwanesaich
- Date:
- Mon May 06 07:53:34 2019 +0000
- Revision:
- 0:84a8c24e29ae
- Child:
- 2:4cc8fa2f64be
Code petit robot sans ISR capteurs pompes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
marwanesaich | 0:84a8c24e29ae | 1 | #ifndef CLASS_VENTOUSE_H |
marwanesaich | 0:84a8c24e29ae | 2 | #define CLASS_VENTOUSE_H |
marwanesaich | 0:84a8c24e29ae | 3 | |
marwanesaich | 0:84a8c24e29ae | 4 | #include "mbed.h" |
marwanesaich | 0:84a8c24e29ae | 5 | |
marwanesaich | 0:84a8c24e29ae | 6 | |
marwanesaich | 0:84a8c24e29ae | 7 | class Ventouse |
marwanesaich | 0:84a8c24e29ae | 8 | { |
marwanesaich | 0:84a8c24e29ae | 9 | public: |
marwanesaich | 0:84a8c24e29ae | 10 | Ventouse(PinName pinPompe, PinName pinElectrovanne, PinName pinCapteurPression); |
marwanesaich | 0:84a8c24e29ae | 11 | |
marwanesaich | 0:84a8c24e29ae | 12 | void attraper(); |
marwanesaich | 0:84a8c24e29ae | 13 | void relacher(); |
marwanesaich | 0:84a8c24e29ae | 14 | |
marwanesaich | 0:84a8c24e29ae | 15 | int getPression(); |
marwanesaich | 0:84a8c24e29ae | 16 | int getPompe(); |
marwanesaich | 0:84a8c24e29ae | 17 | |
marwanesaich | 0:84a8c24e29ae | 18 | |
marwanesaich | 0:84a8c24e29ae | 19 | void setPompe(float val); |
marwanesaich | 0:84a8c24e29ae | 20 | void setElectrovanne(float val); |
marwanesaich | 0:84a8c24e29ae | 21 | |
marwanesaich | 0:84a8c24e29ae | 22 | |
marwanesaich | 0:84a8c24e29ae | 23 | |
marwanesaich | 0:84a8c24e29ae | 24 | |
marwanesaich | 0:84a8c24e29ae | 25 | private: |
marwanesaich | 0:84a8c24e29ae | 26 | PwmOut* m_pompe; |
marwanesaich | 0:84a8c24e29ae | 27 | PwmOut* m_electrovanne; |
marwanesaich | 0:84a8c24e29ae | 28 | AnalogIn* m_pression; |
marwanesaich | 0:84a8c24e29ae | 29 | |
marwanesaich | 0:84a8c24e29ae | 30 | PinName m_pinPompe, m_pinElectrovanne, m_pinCapteurPression; |
marwanesaich | 0:84a8c24e29ae | 31 | |
marwanesaich | 0:84a8c24e29ae | 32 | |
marwanesaich | 0:84a8c24e29ae | 33 | }; |
marwanesaich | 0:84a8c24e29ae | 34 | |
marwanesaich | 0:84a8c24e29ae | 35 | #endif //CLASS_VENTOUSE_H |
marwanesaich | 0:84a8c24e29ae | 36 |