codes in progress
Dependents: RUCHE2-CODES RUCHE2-CODES_correctionpoids RUCHE2-CODES
Diff: message_2.h
- Revision:
- 0:db9f881dd501
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/message_2.h Fri Jan 18 14:15:55 2019 +0000 @@ -0,0 +1,38 @@ +#ifndef MESSAGE_2_H +#define MESSAGE_2_H + +#include "mbed.h" +#include "message.h" + +class Message_2 : public Message { + public: + //Methodes: + + //constructeur + Message_2(int messageType, float longit, float lat, int luminosite):Message(messageType){ + m_longit = longit; + m_lat =lat; + m_luminosite = luminosite; + }; + + //Accesseurs + float getLongit() const{ + return m_longit; + }; + + float getLat() const{ + return m_lat; + }; + + int getLuminosite() const{ + return m_luminosite; + }; + + private: + float m_longit; + float m_lat; + int m_luminosite; +}; + + +#endif \ No newline at end of file