sensorLocPosNed.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * @Brief     Storage locPosNed data and provide setter and getter methods
00003  * @Version   0.3.0
00004  * @Author    Chris Liu
00005  * @Created   2015/11/17
00006  * @Modified  2015/12/25
00007  *****************************************************************************/
00008 
00009 #ifndef _DJI2MAV_SENSORLOCPOSNED_H_
00010 #define _DJI2MAV_SENSORLOCPOSNED_H_
00011 
00012 
00013 namespace dji2mav {
00014 
00015     class SensorLocPosNed {
00016         public:
00017             SensorLocPosNed() {
00018             }
00019 
00020 
00021             ~SensorLocPosNed() {
00022             }
00023 
00024 
00025             inline const mavlink_local_position_ned_t* getDataPtr() {
00026                 return &m_data;
00027             }
00028 
00029 
00030             inline void setTimeBootMs(const int32_t* ts) {
00031                 m_data.time_boot_ms = *ts;
00032             }
00033 
00034 
00035             inline void setX(const float* x) {
00036                 m_data.x = *x;
00037             }
00038 
00039 
00040             inline void setY(const float* y) {
00041                 m_data.y = *y;
00042             }
00043 
00044 
00045             inline void setZ(const float* z) {
00046                 m_data.z = *z;
00047             }
00048 
00049 
00050             inline void setVx(const float* vx) {
00051                 m_data.vx = *vx;
00052             }
00053 
00054 
00055             inline void setVy(const float* vy) {
00056                 m_data.vy = *vy;
00057             }
00058 
00059 
00060             inline void setVz(const float* vz) {
00061                 m_data.vz = *vz;
00062             }
00063 
00064 
00065         private:
00066             mavlink_local_position_ned_t m_data;
00067 
00068 
00069     };
00070 
00071 } //namespace dji2mav
00072 
00073 
00074 #endif


dji_sdk_dji2mav
Author(s):
autogenerated on Thu Jun 6 2019 17:55:35