Anderson Cunha
/
monitoramento_ativos
Programa Teste para monitoramento de ativos eletricos
src/classes/Temperatura.h@5:1b0cd3a1f3c7, 2019-05-14 (annotated)
- Committer:
- AndersonIctus (anderson.ictus@gmail.com)
- Date:
- Tue May 14 22:34:36 2019 -0300
- Revision:
- 5:1b0cd3a1f3c7
- Parent:
- 4:bdc930225ade
* Incluindo eventos ao Giroscopio
(Talvez um Girocospio Observer seria legal aqui !!)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AndersonIctus | 3:213ab6bbf852 | 1 | #include "Logger.h" |
AndersonIctus | 3:213ab6bbf852 | 2 | |
AndersonIctus | 3:213ab6bbf852 | 3 | /// Sensor de temperatura |
AndersonIctus | 3:213ab6bbf852 | 4 | class Temperatura { |
AndersonIctus | 3:213ab6bbf852 | 5 | public: |
AndersonIctus | 3:213ab6bbf852 | 6 | /// Retorna a leitura da Temperatura |
AndersonIctus | 3:213ab6bbf852 | 7 | double verificaTemperatura() { |
AndersonIctus | 3:213ab6bbf852 | 8 | _status = 27.5; |
AndersonIctus | 3:213ab6bbf852 | 9 | _l->log("Retorna a temperatura ... 27.5"); |
AndersonIctus | 3:213ab6bbf852 | 10 | |
AndersonIctus | 3:213ab6bbf852 | 11 | return _status; |
AndersonIctus | 3:213ab6bbf852 | 12 | } |
AndersonIctus | 3:213ab6bbf852 | 13 | |
AndersonIctus | 3:213ab6bbf852 | 14 | void setLog(Logger * l) { |
AndersonIctus | 3:213ab6bbf852 | 15 | _l = l; |
AndersonIctus | 3:213ab6bbf852 | 16 | } |
AndersonIctus | 3:213ab6bbf852 | 17 | |
AndersonIctus | 3:213ab6bbf852 | 18 | private: |
AndersonIctus | 3:213ab6bbf852 | 19 | Logger* _l; |
AndersonIctus (anderson.ictus@gmail.com) | 4:bdc930225ade | 20 | double _status; |
AndersonIctus | 3:213ab6bbf852 | 21 | } |
AndersonIctus | 3:213ab6bbf852 | 22 | ; |