Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_LoRa_Sensornode by
app/MPU9250GyroscopeMessage.h
- Committer:
- mitea1
- Date:
- 2016-07-06
- Revision:
- 0:f2815503561f
File content as of revision 0:f2815503561f:
/** * @file MPU9250GyroscopeMessage.h * * @author Adrian * @date 01.06.2016 * */ #ifndef MPU9250GYROSCOPEMESSAGE_H_ #define MPU9250GYROSCOPEMESSAGE_H_ #include <stdio.h> #include <string> #include <vector> #include "SensorMessage.h" class MPU9250GyroscopeMessage: public SensorMessage { public: MPU9250GyroscopeMessage(); virtual ~MPU9250GyroscopeMessage(); /** * Sets the x-axis gyroscope value of the MPU9250GyroscopeMessage * @param xGyro x-axis Gyroscope value to be stored */ void setXGyro(float xGyro); /** * Sets the y-axis gyroscope value of the MPU9250GyroscopeMessage * @param yGyro y-axis Gyroscope value to be stored */ void setYGyro(float yGyro); /** * Sets the z-axis gyroscope value of the MPU9250GyroscopeMessage * @param zGyro z-axis Gyroscope value to be stored */ void setZGyro(float zGyro); /** * Gets the x-axis gyroscope value from the MPU9250GyroscopeMessage * @return */ float getXGyro(); /** * Gets the y-axis gyroscope value from the MPU9250GyroscopeMessage * @return */ float getYGyro(); /** * Gets the z-axis gyroscope value from the MPU9250GyroscopeMessage * @return */ float getZGyro(); /** * Gets a small LoRaMessage Type Formated String from the MPU9250GyroscopeMessage. * This String can later be used for transportation via LoRa * @return */ virtual char* getLoRaMessageString(); private: std::string loraMessage; std::vector<std::string> loraMessageId; float xGyro; float yGyro; float zGyro; }; #endif /* MPU9250GYROSCOPEMESSAGE_H_ */