SRK Version of mDot LoRa_Sensormode_SRK

Dependencies:   libmDot mbed-rtos mbed

Fork of mDot_LoRa_Sensornode by Adrian Mitevski

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers UBloxGPSMessage.h Source File

UBloxGPSMessage.h

Go to the documentation of this file.
00001 /**
00002  * @file UBloxGPSMessage.h
00003  *
00004  * @author Adrian
00005  * @date 01.06.2016
00006  *
00007  */
00008 
00009 #ifndef UBLOXGPSMESSAGE_H_
00010 #define UBLOXGPSMESSAGE_H_
00011 
00012 #include <stdio.h>
00013 #include <string>
00014 #include <vector>
00015 #include "SensorMessage.h "
00016 
00017 /**
00018  * @class UBloxGPSMessage
00019  * @brief A Container that can hold acquired gps values from the uBLOX. The container will be
00020  * transported via a MessageQueue between different Tasks.
00021  */
00022 
00023 class UBloxGPSMessage: public SensorMessage {
00024 public:
00025     UBloxGPSMessage();
00026     virtual ~UBloxGPSMessage();
00027 
00028 
00029     /**
00030      * @brief Sets the longitude value of the uBloxGPSMessage
00031      * @param longitude longitude value to be stored
00032      */
00033     void setLongitude(float longitude);
00034 
00035     /**
00036      * @brief Sets the latitude value of the uBloxGPSMessage
00037      * @param latitude latitude value to be stored
00038      */
00039     void setLatitude(float latitude);
00040 
00041 
00042     /**
00043      * @brief Gets the longitude value of the uBloxGPSMessage
00044      * @return
00045      */
00046     float getLongitude();
00047 
00048     /**
00049      * @brief Gets the latitude value of the uBloxGPSMessage
00050      * @return
00051      */
00052     float getLatitude();
00053 
00054     /**
00055      * Gets a small LoRaMessage Type Formated String from the uBloxGPSMessage.
00056      * This String can later be used for transportation via LoRa
00057      * @return
00058      */
00059     virtual char* getLoRaMessageString();
00060 
00061 private:
00062     std::string loraMessage;
00063     std::vector<std::string> loraMessageId;
00064 
00065     float longitude;
00066     float latitude;
00067 };
00068 
00069 
00070 #endif /* UBLOXGPSMESSAGE_H_ */